Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static struct wordvalue doubles[] = {
- { "ch", (uchar*) "\014\031\057\057" },
- { "Ch", (uchar*) "\014\031\060\060" },
- { "CH", (uchar*) "\014\031\061\061" },
- { "c", (uchar*) "\005\012\021\021" },
- { "C", (uchar*) "\005\012\022\022" },
- };
- #define NEXT_CMP_VALUE(src, p, store, pass, value, len) \
- while (1) \
- { \
- ...... \
- for (i = 0; i < (int) sizeof(doubles); i++) \
- { \
- const char * pattern = doubles[i].word; \
- ... \
- } \
- } \
- ...... \
- }
- An incorrect macro NEXT_CMP_VALUE.
- This suspicious code was found in TrinityCore project by PVS-Studio static code analyzer.
- Warning message is:
- V557 Array overrun is possible. The value of 'i' index could reach 39. libmysql ctype-czech.c 260
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment