Advertisement
PVS-StudioWarnings

PVS-Studio warning V537 for blender

Nov 21st, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. void tcd_malloc_decode(....) {
  2.   ...
  3.   x0 = j == 0 ? tilec->x0 :
  4.                 int_min(x0, (unsigned int) tilec->x0);
  5.   y0 = j == 0 ? tilec->y0 :
  6.                 int_min(y0, (unsigned int) tilec->x0);  <<<---
  7.   x1 = j == 0 ? tilec->x1 :
  8.                 int_max(x1, (unsigned int) tilec->x1);
  9.   y1 = j == 0 ? tilec->y1 :
  10.                 int_max(y1, (unsigned int) tilec->y1);
  11.   ...
  12. }
  13.  
  14. This suspicious code was found in blender project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V537 Consider reviewing the correctness of 'x0' item's usage. extern_openjpeg tcd.c 650
  17.  
  18. 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