PVS-StudioWarnings

PVS-Studio warning V640 for xpdfwin

Nov 27th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. static void actlist_splay(actlist_t*a, point_t p1, point_t p2)
  2. {
  3.  
  4.   ....
  5.   while(1)
  6.   {
  7.     ....
  8.     if(!a->root->rightchild)
  9.       c = 1;break;
  10.     ....
  11.   }
  12. }
  13.  
  14. This suspicious code was found in xpdfwin project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V640 Consider inspecting the application's logic. It is possible that several statements should be braced. active.c 423
  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