openjpeg/src/bin/jp2
Eharve14 6e4588f379
Added check for integer overflow in get_num_images (#1397)
As discussed in pull request 1396, added a check for integer overflow.
Change list:
Defined num_images as unsigned int
Moved the if statement to check for an empty directory to the beginning of the read directory section
Added a check to see if num images would roll back to zero when incrementing.
2022-01-15 15:33:03 +01:00
..
CMakeLists.txt Changed cmake version test to allow for cmake 2.8.11.x 2017-11-14 21:45:09 +11:00
convert.c API: deprecate 'bpp' member in favor of 'prec' 2021-10-21 14:13:58 +02:00
convert.h opj_compress: add a -TargetBitDepth switch for TIFF output (#1384) 2021-10-27 14:10:50 +02:00
convertbmp.c API: deprecate 'bpp' member in favor of 'prec' 2021-10-21 14:13:58 +02:00
convertpng.c Fix some typos (found by codespell) 2021-12-05 13:14:33 +01:00
converttif.c Remove duplicate assignments in function tiftoimage 2021-12-10 11:29:06 +01:00
index.c Reformat whole codebase with astyle.options (#128) 2017-05-09 20:46:20 +02:00
index.h Reformat: apply reformattin on .h files (#128) 2017-05-15 12:21:30 +02:00
opj_compress.c Added check for integer overflow in get_num_images (#1397) 2022-01-15 15:33:03 +01:00
opj_decompress.c Added check for integer overflow in get_num_images (#1397) 2022-01-15 15:33:03 +01:00
opj_dump.c Added check for integer overflow in get_num_images (#1397) 2022-01-15 15:33:03 +01:00
windirent.h Fix some typos (found by codespell) 2021-12-05 13:14:33 +01:00