Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void tcd_malloc_decode(....) {
- ...
- x0 = j == 0 ? tilec->x0 :
- int_min(x0, (unsigned int) tilec->x0);
- y0 = j == 0 ? tilec->y0 :
- int_min(y0, (unsigned int) tilec->x0); <<<---
- x1 = j == 0 ? tilec->x1 :
- int_max(x1, (unsigned int) tilec->x1);
- y1 = j == 0 ? tilec->y1 :
- int_max(y1, (unsigned int) tilec->y1);
- ...
- }
- This suspicious code was found in blender project by PVS-Studio static code analyzer.
- Warning message is:
- V537 Consider reviewing the correctness of 'x0' item's usage. extern_openjpeg tcd.c 650
- 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