openjpeg/src/bin/jp2
Stefan Weil 948332e6ed Fix some potential overflow issues (#1161)
* Fix some potential overflow issues

Put sizeof to the beginning of the multiplication to enforce that
size_t instead of smaller integer types is used for the calculation.

This fixes warnings from LGTM:

    Multiplication result may overflow 'unsigned int'
    before it is converted to 'unsigned long'.

It also allows removing some type casts.

Signed-off-by: Stefan Weil <sw@weilnetz.de>

* Fix code indentation

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-31 20:44:30 +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 Changes in pnmtoimage if image data are missing 2018-08-31 16:24:41 +02:00
convert.h Reformat: apply reformattin on .h files (#128) 2017-05-15 12:21:30 +02:00
convertbmp.c Fix some potential overflow issues (#1161) 2018-10-31 20:44:30 +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