Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define UCOL_NO_MORE_CES 0x00010101
- static UCollationResult
- ucol_strcollRegular(....)
- {
- ....
- uint32_t secS;
- ....
- while((secS == 0 && secS != UCOL_NO_MORE_CES) ||
- (isContinuation(secS) && !sInShifted)) {
- ....
- }
- This suspicious code was found in icu project by PVS-Studio static code analyzer.
- Warning message is:
- V590 Consider inspecting the 'secS == 0 && secS != 0x00010101' expression. The expression is excessive or contains a misprint. ucol.cpp 7893
- 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
Advertisement