Advertisement
PVS-StudioWarnings

PVS-Studio warning V532 for OpenSSL

Nov 27th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. void SkipWhiteSpace(char **ioSrcCharPtr,
  2.                     const Boolean inStopAtEOL)
  3. {
  4.   ....
  5.   while ((**ioSrcCharPtr == ' ' || **ioSrcCharPtr == '\t') &&
  6.          **ioSrcCharPtr != '\r' && **ioSrcCharPtr != '\n')
  7.   {
  8.     *ioSrcCharPtr++;
  9.   }
  10.   ....
  11.   while (**ioSrcCharPtr == ' ' || **ioSrcCharPtr == '\t')
  12.   {
  13.     *ioSrcCharPtr++;
  14.   }
  15.   ....
  16. }
  17.  
  18. This suspicious code was found in OpenSSL project by PVS-Studio static code analyzer.
  19. Warning message is:
  20. V532 Consider inspecting the statement of '*pointer++' pattern. Probably meant: '(*pointer)++'. cpstringutils.cpp 2741
  21.  
  22. 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