Advertisement
PVS-StudioWarnings

PVS-Studio warning V614 for Word11a

Nov 27th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. FPathSpawn( rgsz )
  2. char *rgsz[];
  3. { /* puts the correct path at the beginning of rgsz[0]
  4.      and calls FSpawnRgsz */
  5.   char *rgsz0;
  6.  
  7.   strcpy(rgsz0, szToolsDir);
  8.   strcat(rgsz0, "\\");
  9.   strcat(rgsz0, rgsz[0]);
  10.   return FSpawnRgsz(rgsz0, rgsz);
  11. }
  12.  
  13. This suspicious code was found in Word11a project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V614 Uninitialized pointer 'rgsz0' used. Consider checking the first actual argument of the 'strcpy' function. makeopus.c 961
  16.  
  17. 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