Advertisement
PVS-StudioWarnings

PVS-Studio warning V532 for Apache

Nov 27th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. apr_status_t
  2. iconv_uc_conv(..., apr_size_t *res)
  3. {
  4.   ...
  5.   if (size)
  6.     *res ++;
  7.   ...
  8. }
  9.  
  10. This is what should have been written here: (*res)++;
  11.  
  12. This suspicious code was found in Apache project by PVS-Studio static code analyzer.
  13. Warning message is:
  14. V532 Consider inspecting the statement of '*pointer++' pattern. Probably meant: '(*pointer)++'. apriconv iconv_uc.c 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
Advertisement