Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Jpeg2KDecoder::readHeader()
- {
- ....
- cmptlut[0] = ....
- cmptlut[1] = ....
- cmptlut[2] = ....
- if( cmptlut[0] < 0 || cmptlut[1] < 0 || cmptlut[0] < 0 )
- result = false;
- ....
- }
- This suspicious code was found in OpenCV project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions 'cmptlut[0] < 0' to the left and to the right of the '||' operator. grfmt_jpeg2000.cpp 215
- 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