Commit Graph

2356 Commits

Author SHA1 Message Date
Mickael Savinaud 5c1e99867c remove unused code related to index recording which is not really functionnal 2016-12-10 23:31:48 +01:00
Mickael Savinaud 68809eee99 remove unuseful comments 2016-12-10 23:28:50 +01:00
Mickael Savinaud 0793a1d080 remove unuseful comments 2016-12-10 23:27:19 +01:00
Mickael Savinaud f49e94bbcc clean the comments related to tcd_dump function 2016-12-10 23:25:45 +01:00
Mickael Savinaud acc44bca98 remove wrong character 2016-12-10 22:17:42 +01:00
Mickael Savinaud 969d9d2f3b replace ifdef statement by a more clear one 2016-12-10 22:16:17 +01:00
Mickael Savinaud df7228d7e5 remove not useful comment 2016-12-10 21:54:05 +01:00
Mickael Savinaud 43991a806c Check the return value of a function to return a clear error message 2016-12-10 21:49:45 +01:00
Mickael Savinaud 5868e64c9c remove MSD unused code in j2k.c 2016-12-10 00:12:03 +01:00
Antonin Descampe a972501658 update abi-check 2016-09-29 22:19:43 +02:00
Antonin Descampe 9a9bc8fa60 remove opj 1.4 and 1.2 from abi-check to avoid symlinks in gh-pages 2016-09-28 20:53:59 +02:00
Antonin Descampe 01e64bd868 Update abi-check scripts for v2.1.2 2016-09-28 20:33:31 +02:00
Antonin Descampe 1f1e968269 Update NEWS.md for v2.1.2 2016-09-28 20:18:16 +02:00
Antonin Descampe 54941adbee Update Changelog for v2.1.2 2016-09-28 20:18:16 +02:00
Antonin Descampe 4142ac60d6 Update version number 2016-09-28 18:53:41 +02:00
Mathieu Malaterre ac927f2eee OPENJPEG_NAMESPACE is configurable by user 2016-09-26 12:02:22 +02:00
Mathieu Malaterre 1be0128fab Remove typos from comments and man pages 2016-09-26 11:28:44 +02:00
Matthieu Darbois f053508f6f Fix PNM file reading (#847)
Malformed PNM file could cause a crash in opj_compress.
Checks were added to prevent this.

Fixes #843
Updates #440
2016-09-22 08:16:36 +02:00
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
Stefan Weil 39f9934a70 Fix potential out-of-bounds read (coverity) (#844)
* query_parser: Fix potential out-of-bounds read (coverity)

CID 1190207 (#1 of 1): Out-of-bounds read (OVERRUN)

Variable i must be checked before testing query_param.box_type.

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

* jpip_parser: Fix potential out-of-bounds read (coverity)

CID 1190206 (#1 of 1): Out-of-bounds read (OVERRUN)

Variable i must be checked before testing query_param.box_type.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-21 14:11:35 +02:00
Antonin Descampe 04a00aab65 Merge pull request #834 from trylab/issue833
Fix issue 833.
2016-09-20 19:04:49 +02:00
Antonin Descampe b7d73d7b25 Disable automatic compilation of t1_generate_luts
Fix #831
2016-09-20 18:51:35 +02:00
Antonin Descampe 25966346f7 Fix warnings from recent overflow checks
see #832
2016-09-16 17:48:20 +02:00
Antonin Descampe d8ae42d808 Merge pull request #832 from mayeut/overflow-check
Add overflow checks for opj_aligned_malloc
2016-09-15 11:12:58 +02:00
mayeut 43557dcd3b Add overflow checks for opj_aligned_malloc
See
https://pdfium.googlesource.com/pdfium/+/b20ab6c7acb3be1393461eb650ca8fa
4660c937e/third_party/libopenjpeg20/0020-opj_aligned_malloc.patch
2016-09-13 21:05:30 +02:00
Matthieu Darbois 0b7aad3231 Add test for issue 820 (#829)
Update uclouvain/openjpeg#820
2016-09-13 11:00:09 +02:00
Matthieu Darbois 5e58b30b8b Add test for issue 826 (#827)
Update uclouvain/openjpeg#826

Also correct names for data of issue uclouvain/openjpeg#823
2016-09-13 11:00:09 +02:00
Matthieu Darbois ee458b5fd0 Fix coverity 113065 (CWE-484) (#824) 2016-09-13 11:00:08 +02:00
Antonin Descampe 21a02aa5be Update THANKS.md 2016-09-13 11:00:08 +02:00
Matthieu Darbois bf845a3892 Cast to size_t before multiplication
Need to cast to size_t before multiplication otherwise overflow check is useless.
2016-09-13 11:00:08 +02:00
Matthieu Darbois b75acb3bb9 Add sanity check for tile coordinates (#823)
Coordinates are casted from OPJ_UINT32 to OPJ_INT32
Add sanity check for negative values and upper bound becoming lower
than lower bound.
See also
https://pdfium.googlesource.com/pdfium/+/b6befb2ed2485a3805cddea86dc7574510178ea9
2016-09-13 11:00:08 +02:00
Matthieu Darbois 2978541ea2 Add test for PR 818 (#822)
update uclouvain/openjpeg#818
2016-09-13 11:00:08 +02:00
Matthieu Darbois 53b4bf29ca fix incrementing of "l_tcp->m_nb_mcc_records" in opj_j2k_read_mcc (#820) 2016-09-13 11:00:08 +02:00
trylab 5196bda0b9 Fix an integer overflow issue (#809)
Prevent an integer overflow issue in function opj_pi_create_decode of
pi.c.
2016-09-13 11:00:08 +02:00
Matthieu Darbois 3547402709 Add overflow check in opj_tcd_init_tile (#819) 2016-09-13 11:00:08 +02:00
Matthieu Darbois d60b7aa130 Fix leak & invalid behavior of opj_jp2_read_ihdr (#818)
In case multiple ihdr box are present, only the first one shall be
taken into account.
2016-09-13 11:00:08 +02:00
Matthieu Darbois 98a97cef6b Add overflow check in opj_j2k_update_image_data (#817) 2016-09-13 11:00:08 +02:00
Matthieu Darbois c8fbf0f516 Change 'restrict' define to 'OPJ_RESTRICT' (#816)
Visual Studio 2015 does not pass regression tests with `__restrict` so kept disabled for MSVC.
Need to check proper usage of OPJ_RESTRICT (if correct then there’s
probably a bug  in vc14)

Closes #661
2016-09-13 11:00:07 +02:00
Stefan Weil 4d2527aa61 Add .gitignore (#787)
Ignore all files and directories which are generated by `cmake . && make`.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-13 11:00:07 +02:00
Matthieu Darbois f62b810892 Switch to clang 3.8 (#814)
clang 3.9 is currently unavailable for precise through apt
2016-09-13 11:00:07 +02:00
Matthieu Darbois 4daf9a8d88 Reenable clang-3.9 build on travis (#806)
clang-3.9 is now available with apt add-on in travis-ci
2016-09-13 11:00:07 +02:00
Matthieu Darbois f31c327213 Add compilation test for standalone inclusion of openjpeg.h (#798)
This ensures all openjpeg.h dependencies are met.
Fix #673
2016-09-13 11:00:07 +02:00
Stefan Weil eebd59a6d6 jpwl: Remove non-portable data type u_int16_t (fix issue #796) (#797)
The type casts which used this data type can be removed by changing
the signature of function swap16. As this function is called with
unsigned variables, this change is reasonable.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-13 11:00:07 +02:00
Stefan Weil ae2095ef14 Fix dependency for pkg-config (issue #594) (#795)
openjpeg provides libopenjp2.pc, so the require statements must refer to
libopenjp2 instead of openjp2.
Fixes #594

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-13 11:00:07 +02:00
mayeut 37b1679a27 Update ABI tracker script
Disable previous version.
2016-09-13 11:00:07 +02:00
mayeut 0fac6e4222 Update ABI tracker from 2.1 to 2.1.1 2016-09-13 11:00:07 +02:00
Antonin Descampe 76fa5c5639 update api/abi tracker 2016-09-13 11:00:07 +02:00
mayeut 6221641a2c Add version 2.1.1 to ABI tracker 2016-09-13 11:00:06 +02:00
Antonin Descampe 0a2178fa27 Trigger API/ABI update on website 2016-09-13 11:00:06 +02:00
Antonin Descampe 53f25200ed Merge branch 'master' into openjpeg-2.1 2016-07-05 16:54:17 +02:00