Advertisement
PVS-StudioWarnings

PVS-Studio warning V637 for UnrealEngine4

Nov 26th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. const TCHAR* UStructProperty::ImportText_Internal(....) const
  2. {
  3.   ....
  4.   if (*Buffer == TCHAR('\"'))
  5.   {
  6.     while (*Buffer && *Buffer != TCHAR('\"') &&
  7.            *Buffer != TCHAR('\n') && *Buffer != TCHAR('\r'))
  8.     {
  9.       Buffer++;
  10.     }
  11.  
  12.     if (*Buffer != TCHAR('\"'))
  13.   ....
  14. }
  15.  
  16. This suspicious code was found in UnrealEngine4 project by PVS-Studio static code analyzer.
  17. Warning message is:
  18. V637 Two opposite conditions were encountered. The second condition is always false. Check lines: 310, 312. propertystruct.cpp 310
  19.  
  20. 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