Commit Graph

2334 Commits

Author SHA1 Message Date
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
Antonin Descampe fef144283f Update INSTALL.md 2016-07-05 16:49:10 +02:00
Antonin Descampe 4c5a1cc825 Update AUTHORS.md 2016-07-05 16:40:27 +02:00
Antonin Descampe bd96ed8353 Update AUTHORS file 2016-07-05 16:07:16 +02:00
Antonin Descampe f4a708ba0f Update INSTALL, README and THANKS file 2016-07-05 16:04:29 +02:00
Antonin Descampe 2372cb78a0 Upload changelog and convert some files to mardown 2016-07-05 15:29:02 +02:00
Antonin Descampe 9d5002f8fd Remove useless diff command in abi-check.sh 2016-06-26 20:00:37 +02:00
Matthieu Darbois e4c74f5364 Correct abi-check.sh for PR (#791) 2016-06-25 01:09:42 +02:00
maddin200 cb72c08472 Update tcd.c (#790)
cppcheck unitialized variable
2016-06-21 22:13:57 +02:00
Matthieu Darbois 898ca6f522 Remove clang-3.9 build
c.f. travis-ci/travis-ci#6120
2016-06-21 22:09:08 +02:00
Antonin Descampe 86698be6e9 Automatic upload of ABI report (end) 2016-06-21 17:41:29 +02:00
Antonin Descampe cdcb77e796 Automatic upload of ABI report (ctd) 2016-06-21 17:21:08 +02:00
Antonin Descampe 954dad66de Automatic upload of ABI report (ctd) 2016-06-21 16:46:38 +02:00
Antonin Descampe 48744a1342 setup automatic upload of ABI reports 2016-06-21 16:19:06 +02:00
Antonin Descampe 788dff0a36 Merge branch 'master' into openjpeg-2.1 2016-05-15 19:19:15 +02:00
Antonin Descampe d0babeb6f6 WIP automatic release 2016-05-15 18:17:24 +02:00
Antonin Descampe 5a0620026f Update appveyor release description 2016-05-15 18:00:07 +02:00
Antonin Descampe 620b06f566 Fixing deployment condition 2016-05-15 17:38:18 +02:00
Antonin Descampe b3a8a69503 cpack only on tag commit 2016-05-15 16:52:17 +02:00
Antonin Descampe 5b9bf39408 Trying to make appveyor and travis deploy on the same release 2016-05-15 16:51:21 +02:00
Antonin Descampe 65e214efd3 WIP automatic deployment 2016-05-15 16:09:45 +02:00
Antonin Descampe e0d2a7bd8c WIP automatic deployment 2016-05-15 16:01:20 +02:00
Antonin Descampe 177fdd94c0 WIP automatic deployment 2016-05-15 14:18:14 +02:00