PVS-StudioWarnings

PVS-Studio warning V614 for IPP Samples

Nov 17th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. Ipp32s GetUSCCodecParamsByFormat(
  2.   LoadedCodec *codec, Ipp32s lQuery,FILE *f_log)
  3. {
  4.    ....
  5.    vm_dir *pDirEntry;
  6.    ....
  7.    if(codec->pSOHandle==NULL) {
  8.       ....
  9.       st = vm_dir_open(&pDirEntry,SO_FILE_MASK);
  10.       ....
  11.    }
  12.    ....
  13.    vm_dir_close(pDirEntry);
  14.    return -1;
  15. }
  16.  
  17. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  18. Warning message is:
  19. V614 Potentially uninitialized pointer 'pDirEntry' used. Consider checking the first actual argument of the 'vm_dir_close' function. loadcodec.c 287
  20.  
  21. 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