Advertisement
PVS-StudioWarnings

PVS-Studio warning V590 for icu

Nov 27th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #define UCOL_NO_MORE_CES 0x00010101
  2.  
  3. static UCollationResult
  4. ucol_strcollRegular(....)
  5. {
  6.   ....
  7.   uint32_t secS;
  8.   ....
  9.   while((secS == 0 && secS != UCOL_NO_MORE_CES) ||
  10.         (isContinuation(secS) && !sInShifted)) {
  11.   ....
  12. }
  13.  
  14. This suspicious code was found in icu project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V590 Consider inspecting the 'secS == 0 && secS != 0x00010101' expression. The expression is excessive or contains a misprint. ucol.cpp 7893
  17.  
  18. 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