Eharve14
1dbc41a06c
fixed iterator issue in for loop to set up dirptr
2022-01-15 22:12:54 -05:00
Eharve14
85b248b1a8
Resloved issue where imagino used to iterate through files retrived was signed, causing possible overflow
2022-01-15 22:10:43 -05:00
Eharve14
fc88a3048b
same as last
2022-01-15 21:54:37 -05:00
Eharve14
76d50ceeb9
Corrected type for num_images in main, was singed integer
2022-01-15 20:54:25 -05:00
Eharve14
43bf2bec84
Re-Revised to use break statement instead of return.
2022-01-15 09:14:13 -05:00
Eharve14
7766d9c81d
Added return statement to break iteration
2022-01-14 21:20:18 -05:00
Eharve14
e011787bb1
Added import of limits.h, revised overflow check, Redefined Return value for get_num_images
2022-01-14 15:23:36 -05:00
Eharve14
081bc3e096
Fixed style
2022-01-13 16:36:23 -05:00
Eharve14
912a144c27
Fixed issues with get_num_images, moved the zero file check to prevent exicution of allocation and strcpy if there are no images.
2022-01-13 16:29:30 -05:00
Eharve14
cbc8b26fb9
Revert "Added overflow check to get_num_images, defined num_images as unsigned for conformity, relocated check for num images for exicution before allocation and image loading"
...
This reverts commit ab6c7c7203
.
2022-01-13 16:22:29 -05:00
Eharve14
957a6cd70e
Revert "Fixed style"
...
This reverts commit dbe64d6fe0
.
2022-01-13 16:22:23 -05:00
Eharve14
dbe64d6fe0
Fixed style
2022-01-13 16:15:56 -05:00
Eharve14
ab6c7c7203
Added overflow check to get_num_images, defined num_images as unsigned for conformity, relocated check for num images for exicution before allocation and image loading
2022-01-13 15:20:48 -05:00
Even Rouault
e27cfb39c9
Update src/bin/jp2/opj_dump.c
2022-01-13 19:28:23 +01:00
Even Rouault
323a089003
Update src/bin/jp2/opj_dump.c
2022-01-13 19:22:22 +01:00
Eharve14
7c422579a3
Why, why is this happening
2022-01-13 13:17:40 -05:00
Eharve14
efa9c7e76b
Revised to casts, deleted all other changes
2022-01-13 12:48:58 -05:00
Eharve14
968cf54a95
Revised to catch negitive values of num_images
2022-01-13 12:04:59 -05:00
Eharve14
d8fe12641e
Revert "Revised to address int overflow in for loop only"
...
This reverts commit e74ee84320
.
2022-01-13 11:35:20 -05:00
Eric Harvey
e74ee84320
Revised to address int overflow in for loop only
2022-01-13 10:44:11 -05:00
Eric Harvey
d564919d3a
Added multiplication check for calloc calls, see comment on commit 79c7d7a
2022-01-13 00:55:34 -05:00
Brad Parham
79c7d7af59
opj_compress/opj_uncompress: fix integer overflow in num_images ( #1395 )
...
Includes the fix for CVE-2021-29338
Credit to @kaniini based on #1346
Fixes #1338
2022-01-12 13:46:10 +01:00
Even Rouault
15594a3dbf
opj_dump.c: fix potential buffer overflow
2021-09-26 12:37:59 +02:00
Even Rouault
f3d8c763ba
opj_decompress / opj_dump: accept .jph and .jhc extensions for HTJ2K files
2021-09-25 12:26:59 +02:00
Jamaika1
8aaafe6995
Import files tiff and yuv(raw) ( #1316 )
2021-05-06 19:30:34 +02:00
szukw000
57e36dbfeb
First change on changes-for-afl-tests
2017-08-02 17:27:08 +02:00
szukw000
00f45684a8
Catch images broken by AFL
2017-07-31 13:58:08 +02:00
Even Rouault
563bd8499e
Reformat whole codebase with astyle.options ( #128 )
2017-05-09 20:46:20 +02:00
julienmalik
319fc971fe
cppcheck fix for openjp2 ( #740 )
2016-04-29 23:49:17 +02:00
Julien Malik
5e5f6999a8
Remove dead code in opj_dump
2016-04-09 18:34:11 +02:00
Stefan Weil
c8ae3c5225
Fix warnings for C++
...
g++ complains about invalid conversions like these ones:
error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
error: invalid conversion from ‘void*’ to ‘opj_precision* {aka opj_prec*}’ [-fpermissive]
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-10-07 20:53:57 +02:00
mayeut
838dfb8058
Provide safer string copy than strncpy
...
As per @boxerab suggestion in commit
b9ca882749
2015-09-25 22:04:58 +02:00
mayeut
b9ca882749
Fix resource leaks & unchecked resource allocations
2015-09-25 00:08:34 +02:00
Antonin Descampe
ec84bafcd8
[trunk]re-formatted help display in executables
2014-04-23 14:09:20 +00:00
Antonin Descampe
08c09b74cf
[trunk]formatted some messages. Removed -version option to disambiguate
...
with -v(erbose) option, added version info in help display
2014-04-23 09:12:30 +00:00
Antonin Descampe
7aece5e8e7
[trunk]Replaced deprecated opj_stream_set_user_data function from API
...
with its 'v3' version, and removed all other 'v3' suffixes from API.
2014-04-23 07:46:11 +00:00
Antonin Descampe
8d93eae64a
[trunk] fixed some warning and errors formatting and add a '-version'
...
option to opj_compress and opj_decompress binaries
2014-04-22 21:22:49 +00:00
Antonin Descampe
d19a4ab676
[trunk] updated copyright and added copyright notice required by ISO, in each file; updated AUTHORS, NEWS
2014-04-03 15:30:57 +00:00
Mathieu Malaterre
e8abf1fb25
[trunk] Add internal implementation to dump all tiles/comp info
...
Eg: opj_dump -f 8 -i input.j2k
Update issue 3
2014-03-14 13:53:36 +00:00
Mathieu Malaterre
740924fa61
[trunk] Another round of fixes for sign conversion warnings.
...
Update issue 256
2014-03-07 11:59:29 +00:00
Mathieu Malaterre
1eb67ca49d
[trunk] Remove some simple warnings in opj_dump
2014-02-28 12:06:57 +00:00
Mickael Savinaud
af58e8e8f9
[trunk] move to the new API for function opj_stream_create_default_file_stream. Use now opj_stream_create_default_file_stream_v3 (WIP)
2013-02-17 10:34:31 +00:00
Mickael Savinaud
4bf4a7668e
[trunk] move to the new API for function opj_stream_destroy. Use now opj_stream_destroy_v3 (WIP)
2013-02-16 17:39:23 +00:00
Mickael Savinaud
d5efeb7df5
[trunk]update the copyright, the authors and thanks to respect the license
2012-11-15 15:22:29 +00:00
Mickael Savinaud
e212154d8d
[trunk]extend last commits to apps
2012-11-15 13:38:35 +00:00
Mathieu Malaterre
98682e1073
[trunk] Remove some warnings about missing prototypes (gcc)
2012-10-15 15:47:56 +00:00
Mathieu Malaterre
3bf4d635f2
[trunk] FolderReorgProposal task: rename cli tools
...
Update issue 177
2012-09-28 09:12:22 +00:00