PVS-StudioWarnings

PVS-Studio warning V595 for FlightGear

Nov 13th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. static int tokMatch(struct Token* a, struct Token* b)
  2. {
  3.   int i, l = a->strlen;
  4.   if(!a || !b) return 0;
  5.   ....
  6. }
  7.  
  8. This suspicious code was found in FlightGear project by PVS-Studio static code analyzer.
  9. Warning message is:
  10. V595 The 'a' pointer was utilized before it was verified against nullptr. Check lines: 478, 479. codegen.c 478
  11.  
  12. 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