openjpeg/src/bin/jp2
Hugo Lefeuvre 8ee335227b convertbmp: detect invalid file dimensions early
width/length dimensions read from bmp headers are not necessarily
valid. For instance they may have been maliciously set to very large
values with the intention to cause DoS (large memory allocation, stack
overflow). In these cases we want to detect the invalid size as early
as possible.

This commit introduces a counter which verifies that the number of
written bytes corresponds to the advertized width/length.

Fixes #1059 (CVE-2018-6616).
2018-12-14 05:10:35 +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 jp2: convert: fix null pointer dereference 2018-11-07 18:53:18 +01:00
convert.h Reformat: apply reformattin on .h files (#128) 2017-05-15 12:21:30 +02:00
convertbmp.c convertbmp: detect invalid file dimensions early 2018-12-14 05:10:35 +01:00
convertpng.c Reformat whole codebase with astyle.options (#128) 2017-05-09 20:46:20 +02:00
converttif.c Fix some potential overflow issues (#1161) 2018-10-31 20:44:30 +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 Fix some potential overflow issues (#1161) 2018-10-31 20:44:30 +01:00
opj_decompress.c Fix some potential overflow issues (#1161) 2018-10-31 20:44:30 +01:00
opj_dump.c First change on changes-for-afl-tests 2017-08-02 17:27:08 +02:00
windirent.h Fix mingw related warnings 2017-06-21 12:54:40 +02:00