Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static const struct _tag_cpltbl
- {
- unsigned cp;
- const char* mimecp;
- } cptbl[] =
- {
- { 037, "IBM037" }, // IBM EBCDIC US-Canada <<<---
- { 437, "IBM437" }, // OEM United States
- { 500, "IBM500" }, // IBM EBCDIC International
- { 708, "ASMO-708" },// Arabic (ASMO 708)
- ...
- }
- This suspicious code was found in Miranda IM project by PVS-Studio static code analyzer.
- Warning message is:
- V536 Be advised that the utilized constant value is represented by an octal form. Oct: 037, Dec: 31. msn msn_mime.cpp 192
- 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