Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline bool IsValidChar(int c)
- {
- return c == 0x9 || 0xA || c == 0xD ||
- c >= 0x20 && c <= 0xD7FF ||
- c >= 0xE000 && c <= 0xFFFD ||
- c >= 0x10000 && c <= 0x10FFFF;
- }
- This suspicious code was found in windjview project by PVS-Studio static code analyzer.
- Warning message is:
- V560 A part of conditional expression is always true: 0xA. WinDjView xmlparser.cpp 45
- 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