Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static struct AppleSMCData data[] =
- {
- {6, "REV ", "\0x01\0x13\0x0f\0x00\0x00\0x03"}, //<==
- {32,"OSK0", osk },
- {32,"OSK1", osk+32 },
- {1, "NATJ", "\0" },
- {1, "MSSP", "\0" },
- {1, "MSSD", "\0x3" }, //<==
- {1, "NTOK", "\0"},
- {0, NULL, NULL }
- };
- Most likely this is what should be written here: {6, "REV ", "\x01\x13\x0f\x00\x00\x03"} .... {1, "MSSD", "\x3" } ....
- This suspicious code was found in VirtualBox project by PVS-Studio static code analyzer.
- Warning message is:
- V638 A terminal null is present inside a string. The '\0x01' characters were encountered. Probably meant: '\x01'. devsmc.cpp 129
- 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