during a check of the current trunk with the static code analysis tool cppcheck, the tool found an issue in :
plplot/drivers/pstex.c at line 71. Cppcheck printed the following message:
Dangerous usage of 'ofile' (strncpy doesn't always 0-terminate it)
Take a look at the source:
strncpy( ofile, pls->FileName, 80 );
strcat( ofile, "_t" );
after strncpy, the buffer needs to be zero terminated, the strcat can be called.
Log in to post a comment.