openjpeg/src/bin
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
..
common opj_getopt.c: avoid crash on invalid input (#301) 2017-09-03 00:30:36 +02:00
jp2 Fix some potential overflow issues (#1161) 2018-10-31 20:44:30 +01:00
jp3d jp3d: Replace sprintf() by snprintf() in volumetobin() 2018-03-03 10:11:39 +01:00
jpip Reformat whole codebase with astyle.options (#128) 2017-05-09 20:46:20 +02:00
jpwl Add missing fclose() statement in error condition. 2017-10-20 15:31:45 -04:00
mj2 Merge branch 'pr1095' 2018-09-22 23:12:50 +02:00
wx Spelling fixes (patch by ka7, #890, rebased on top of master) 2017-07-26 21:06:38 +02:00
CMakeLists.txt [trunk] FolderReorgProposal task: fix JPWL 2012-09-28 09:26:51 +00:00