Commit Graph

20 Commits

Author SHA1 Message Date
Stefan Weil 7a5fb35b8d Fix some issues reported by Coverity Scan (#846)
* test_tile_decoder: Fix potential buffer overflow (coverity)

CID 1190155 (#1 of 1): Unbounded source buffer (STRING_SIZE)

Using a pointer instead of buffer of fixed size avoids the limit
for the length of the input file name.

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

* test_tile_encoder: Fix potential buffer overflow (coverity)

CID 1190154 (#1 of 1): Unbounded source buffer (STRING_SIZE)

Using a pointer instead of buffer of fixed size avoids the limit
for the length of the output file name. This implies that the length
can exceed 255, so the data type for variable len had to be fixed, too.

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

* openjpip: Initialize data before returning it

This fixes an error reported by Coverity:

CID 1190143 (#1 of 1): Uninitialized scalar variable (UNINIT)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-22 08:16:13 +02: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
Mathieu Malaterre 8d3ef0729c [trunk] Remove simple warning about unused variables 2014-03-06 14:47:52 +00:00
Mathieu Malaterre 43382a9b9c [trunk] Remove unused variables from test 2014-03-03 07:58:59 +00:00
Mathieu Malaterre 7f277fea94 [trunk] Remove some simple warnings about cast, and unused functions 2014-02-26 14:00:21 +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 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 4a845f3d04 [trunk] Fix one remaining issue with C90 compat 2012-09-10 12:46:42 +00:00
Luc Hermitte 4e81ea2a8a [trunk] realloc is misused and may leak memory (Issue#168) 2012-08-22 18:45:31 +00:00
Mickael Savinaud 52f414669a [trunk] rename opj_setup_decoder_v2 to opj_setup_decoder 2012-08-09 12:11:24 +00:00
Mickael Savinaud 35289bffe2 [trunk] rename opj_create_decompress_v2 to opj_create_decompress 2012-08-09 11:51:07 +00:00
Mickael Savinaud c38b5d5eb9 Add file type detection in test_tile_decoder to support JP2 file as input 2012-08-09 11:05:58 +00:00
Mickael Savinaud c3ee4212f0 Reorganize and clean style of test_tile_decoder.c 2012-08-09 08:07:57 +00:00
Mathieu Malaterre 0447ea94c1 Activate tile decoding system to reproduce issues 2012-05-21 08:03:58 +00:00
Mathieu Malaterre 595c00f55c [trunk] Fix remaining compilation errors 2012-05-14 07:17:42 +00:00
Mickael Savinaud 5aaa5eab70 remove opj_event_mgr struct from test_tile_decoder 2012-05-14 07:13:27 +00:00
Mathieu Malaterre 70b24b021a [trunk] Fix using proper v2 function 2012-05-14 07:11:02 +00:00
Mathieu Malaterre af96c721c4 [trunk] Import from v2 test_tile_decoder 2012-05-14 07:03:33 +00:00