Mathieu Malaterre
901c9d8ae0
[trunk] Import commit fc884aee2b69c78500e65c3d05bf216791a9ea4a from ghostpdl
...
prevent heap overflow in opj_t2_read_packet_header
Also prevent a double-free of segment data under OOM conditions.
Problem found in a test file, 1802.pdf.SIGSEGV.36e.894 supplied
by Mateusz "j00ru" Jurczyk and Gynvael Coldwind of the Google
Security Team using Address Sanitizer. Many thanks!
Update issue 225
2014-02-25 13:38:32 +00:00
Mathieu Malaterre
6145c82804
[trunk] Import commit 8ec8321df613986e8642e2975f7182072eb4be62 from ghostpdl
...
make opj_stream_set_user_data accept a NULL stream
for consistency with opj_stream_set_* which does so.
Update issue 225
2014-02-25 13:33:43 +00:00
Mathieu Malaterre
876c02206d
[trunk] Import commit f4139d702559649e577a5df9cfd64b0ca6107a7a from ghostpdl
...
Several functions accept a buffer size but never actually check whether
the buffer overflows during reading/writing. This fixes all cases where
a size variable has explicitly been marked as unused (through a (void)
cast).
This was discovered while investigating an assertion caused by
7cc691f332f26802c64cdc47e17bff8b_signal_sigabrt_7ffff6d59425_2247_2509.pdf
among others.
Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security
Team for providing the example files.
2014-02-25 13:28:37 +00:00
Mathieu Malaterre
3ca312033f
[trunk] Clarify raw input in openjpeg. LSB vs MSB are now documented.
...
Fixes issue 62
2014-02-25 10:35:07 +00:00
Mathieu Malaterre
1378475573
[trunk] Run test case for issue 228. Output has been validated.
...
Fixes issue 228
2014-02-25 10:30:40 +00:00
Mathieu Malaterre
00b049866b
[trunk] Run sumatrapdf test cases
2014-02-25 10:06:37 +00:00
Mathieu Malaterre
d847e477f0
[trunk] add missing private lib. Update issue 223
2014-02-24 17:22:48 +00:00
Mathieu Malaterre
c55e164e87
[trunk] Make sure to always output pgx file. Handle case where multiple pgx files are generated. Fixes all tests.
2014-02-24 16:55:13 +00:00
Mathieu Malaterre
531cd5dd14
[trunk] add test demonstrating a regression in 1.5.0 and up. Update issue 205
2014-02-24 16:09:42 +00:00
Mathieu Malaterre
ff0a9f763e
[trunk] improve test suite by checking against a reference md5
2014-02-24 16:07:21 +00:00
Mathieu Malaterre
228e0a3d79
[trunk] Fix a simple mem leak
2014-02-24 14:55:32 +00:00
Mathieu Malaterre
f38e29d00a
[trunk] Fix two simple warnings about sign mismatch
2014-02-24 14:50:40 +00:00
Mathieu Malaterre
963283d7d0
[trunk] Fix warning about signed/unsigned mismatch
2014-02-24 14:27:02 +00:00
Mathieu Malaterre
c91044a4a7
[trunk] Make sure to handle ret value, and properly initialize output file
2014-02-24 14:22:25 +00:00
Mathieu Malaterre
f42c26adbd
[trunk] Make sure to handle ret value in test
2014-02-24 14:10:11 +00:00
Mathieu Malaterre
9efad43509
[trunk] Prefer the new style cmake: add_test command
...
Fixes issues 258
2014-02-24 12:48:23 +00:00
Mathieu Malaterre
33d8f08964
[trunk] Fix a warning about type conversion. Use a trick where unsigned wrapping is legal
2014-02-24 08:52:44 +00:00
Antonin Descampe
e826e9281e
[trunk] replaced fprintf with event_mgr in cinema-related stuff in j2k.c
2014-02-12 16:33:19 +00:00
Antonin Descampe
780120c9a2
[trunk] moved logic related to cinema profiles in library (was in
...
opj_compress.c). This enables one using the library with its own
executable to easily ask for cinema profiles.
2014-02-12 16:16:21 +00:00
Antonin Descampe
d6c0c85125
[trunk] added a warning when tif conversion changes input image bitdepth
2014-02-12 15:16:36 +00:00
Antonin Descampe
c81fb397bb
[trunk]re-indenting convert.c
2014-02-12 14:56:49 +00:00
Mathieu Malaterre
caf4e46e06
Update kakadu cmake module
2014-02-07 10:37:06 +00:00
Antonin Descampe
ff1a30d80a
[trunk] added some tests for Cinema2k 48fps and Cinema 4k 24 fps. Fixed
...
a bug in comparePGXimages.c leading to huge Test.xml file uploaded to
DashBoard
2014-01-23 16:33:13 +00:00
Antonin Descampe
d143f49a66
[trunk] fixed another DCI compliance bug
2014-01-23 09:39:02 +00:00
Antonin Descampe
58698b789a
[trunk] uncomment tests mistakenly commented in previous commit
2014-01-22 18:44:11 +00:00
Antonin Descampe
ee3f2ffa19
[trunk] fixed several bugs in cinema mode (2K 24/48 fps, and 4K). Trunk
...
now produces compliant DCI code-streams.
2014-01-22 18:41:34 +00:00
Antonin Descampe
c59124dfe2
[trunk] fixed indentation in opj_compress.c, renamed 2 internal
...
functions, added some comments
2014-01-16 14:21:14 +00:00
Antonin Descampe
7b14cf8558
[trunk] fixed DCI-compliant codestream generation (-cinema2K and -
2014-01-16 12:55:14 +00:00
Antonin Descampe
05f796d2fa
trunk: fixed cmake config so as to be able to link opj_jpip_server with FCGI.
2013-10-30 08:59:23 +00:00
Antonin Descampe
bd8c91b37d
trunk: fixed cmake config so as to be able to link opj_jpip_server with FCGI.
2013-10-30 08:57:18 +00:00
Antonin Descampe
7294cdef3e
trunk: disabling class-0 conformance tests for now (bad implentation of tests)
2013-10-28 23:31:55 +00:00
Rex Dieter
4d7b6374c8
complete openjpeg2 pkgconfig support, bug #68
2013-10-15 19:17:51 +00:00
Mathieu Malaterre
5855da5a15
[trunk] Import patch from bug #241
2013-09-26 09:28:47 +00:00
Antonin Descampe
34fd493512
test: modified class-0 conformance testing to comply with constraints
2013-07-11 16:48:49 +00:00
Mickael Savinaud
da4bd9b110
[trunk] use the private version of opj_config to avoid compilation error into mj2
2013-03-25 13:43:14 +00:00
Mickael Savinaud
7fbf6df09e
[trunk] use opj_config_private.h into the opj_inttypes.h
2013-03-25 13:36:26 +00:00
Mickael Savinaud
68415d040f
[trunk] separate the opj_config file between public and private part to avoid expose unused variables into the public API.
2013-03-25 12:43:27 +00:00
Mickael Savinaud
8ee74f6bff
[trunk] update test suite because now illegalcolortransform.j2k could be decoded
2013-03-25 09:54:15 +00:00
Mickael Savinaud
bf0fa4089f
[trunk] enhance the support of sYCC into opj_decompress application (thanks winfried).
2013-03-24 23:12:41 +00:00
Mickael Savinaud
07ae149955
[trunk] managed nicely the case where TPSot value is incorrect (thanks winfried). Update the test suite to check this case. Updates issue 202. Updates issue 206. Update issue 208
2013-03-24 22:50:46 +00:00
Mickael Savinaud
ecb93d97a5
[trunk] add access to opj_apps_config.h to old applications
2013-03-17 22:22:11 +00:00
Mickael Savinaud
f769d5e27f
[trunk] manage correctly the case where meth value is not correct (thanks winfried)
2013-03-17 18:27:41 +00:00
Mickael Savinaud
1e414c8f37
[trunk] correct issue 188 (thanks winfried) and add test about it. Fixes issue 188
2013-03-17 18:16:03 +00:00
Mickael Savinaud
07e6994be1
[trunk] use OPJ_ prefix on HAVE variable also for tests
2013-03-17 17:08:12 +00:00
Mickael Savinaud
0abf4f8fbb
[trunk]remove wrong code in mj2 library detected by winfried (thanks to you)
2013-03-17 17:06:30 +00:00
Mickael Savinaud
a13e4a77e0
[trunk] use everywhere the new opj_ prefix for HAVE variables and use the opj_apps_config file (thanks to winfried)
2013-03-17 17:03:00 +00:00
Mickael Savinaud
6de2271e2a
[trunk] use the home made macro to ensure the existence of some include file
2013-03-13 15:21:20 +00:00
Mickael Savinaud
021e255282
[trunk] use the opj_ prefix for the HAVE_FSEEKO variable
2013-03-13 15:17:35 +00:00
Mickael Savinaud
92b1e038c1
[trunk] correct missing variable in openjpeg config file
2013-03-13 10:18:04 +00:00
Mickael Savinaud
a8c33ae219
[trunk] remove some unused variable from opj_config and rename other one with opj_ prefix
2013-03-03 18:06:27 +00:00