PVS-StudioWarnings

PVS-Studio warning V595 for OpenCV

Nov 10th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. CV_IMPL void
  2. cvReleaseConDensation( CvConDensation ** ConDensation )
  3. {
  4.   ....
  5.   CvConDensation *CD = *ConDensation;
  6.  
  7.   if( !ConDensation )
  8.       CV_Error( CV_StsNullPtr, "" );
  9.   ....
  10. }
  11.  
  12. This suspicious code was found in OpenCV project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V595 The 'ConDensation' pointer was utilized before it was verified against nullptr. Check lines: 114, 116. condens.cpp 114
  15.  
  16. 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