trylab
a2b934be89
Merge remote-tracking branch 'upstream/master'
2016-09-21 14:34:48 +08:00
Antonin Descampe
da94042481
Merge pull request #834 from trylab/issue833
...
Fix issue 833.
2016-09-20 18:59:30 +02:00
Antonin Descampe
31d44f0280
Disable automatic compilation of t1_generate_luts
...
Fix #831
2016-09-20 18:48:06 +02:00
Antonin Descampe
3aaeea7ce8
renamed USE_THREAD to OPJ_USE_THREAD
...
renaming to be consistent with previous OPJ CMake options
2016-09-16 17:54:12 +02:00
Matthieu Darbois
6e7616c83c
Remove TODO for overflow check ( #842 )
...
The check was already done. It’s been simplified.
Reformat to get consistent style throughout the functions.
2016-09-15 23:51:34 +02:00
Matthieu Darbois
9a07ccb3d0
Add overflow checks for opj_aligned_malloc ( #841 )
...
See
https://pdfium.googlesource.com/pdfium/+/b20ab6c7acb3be1393461eb650ca8fa4660c937e/third_party/libopenjpeg20/0020-opj_aligned_malloc.patch
2016-09-15 01:57:53 +02:00
Matthieu Darbois
f88c9974e2
Flags in T1 shall be unsigned ( #840 )
...
This will remove some conversion warnings
2016-09-14 23:46:46 +02:00
Matthieu Darbois
0954bc11e3
Fix some warnings ( #838 )
...
Fix warnings introduced by uclouvain/openjpeg#786
2016-09-14 00:12:43 +02:00
Antonin Descampe
1e69940955
Merge branch 'smuehlst-bit-fields-type'
2016-09-13 21:21:56 +02:00
Antonin Descampe
f66e120452
Merge branch 'bit-fields-type' of https://github.com/smuehlst/openjpeg into smuehlst-bit-fields-type
2016-09-13 21:21:11 +02:00
Antonin Descampe
d6d0f070e1
Merge pull request #786 from rouault/tier1_optimizations_multithreading
...
T1 & DWT multithreading decoding optimizations
2016-09-13 16:39:26 +02:00
Antonin Descampe
f1f7c53308
remove ops 1.4 and 1.2 from abi-check to avoid symlinks in gh-pages
2016-09-13 16:21:38 +02:00
trylab
893143c8e1
Fix issue 833.
...
Add some overflow check operations.
2016-09-13 17:43:30 +08:00
trylab
c6b7e6663d
sync from source repository
2016-09-13 17:34:16 +08:00
trylab
16b0e4a181
Fix Issue 833
...
Fix https://github.com/uclouvain/openjpeg/issues/833
Check if whether overflow happens or not before calculating.
2016-09-13 17:25:11 +08:00
trylab
5dca623ba8
Merge remote-tracking branch 'upstream/master'
2016-09-13 17:16:52 +08:00
Matthieu Darbois
805972f4c8
Add test for issue 820 ( #829 )
...
Update uclouvain/openjpeg#820
2016-09-11 19:47:32 +02:00
Matthieu Darbois
45ed017b1b
Add test for issue 826 ( #827 )
...
Update uclouvain/openjpeg#826
Also correct names for data of issue uclouvain/openjpeg#823
2016-09-08 23:56:06 +02:00
Matthieu Darbois
b21a8317e5
Fix coverity 113065 (CWE-484) ( #824 )
2016-09-08 22:14:19 +02:00
Antonin Descampe
5fb81d986e
Update THANKS.md
2016-09-08 11:28:58 +02:00
Even Rouault
48c16b2c19
Merge branch 'master' of https://github.com/uclouvain/openjpeg into tier1_optimizations_multithreading_2
...
Conflicts:
src/lib/openjp2/t1.c
2016-09-08 10:30:09 +02:00
Even Rouault
ab22c5bad5
opj_thread_pool: fix potential deadlock at thread pool destruction
2016-09-08 09:43:36 +02:00
Matthieu Darbois
ef01f18dfc
Cast to size_t before multiplication
...
Need to cast to size_t before multiplication otherwise overflow check is useless.
2016-09-08 07:34:46 +02:00
trylab
2cbad4f074
Strengthen integer overflow check in opj_pi_create_decode
...
l_tcp->numlayers and l_step_l are both OPJ_UINT32 type variables. Thus
using SIZE_MAX or ((size_t)-1) to check integer overflow is
insufficient. We should use (OPJ_UINT32)-1 here.
2016-09-08 10:41:34 +08:00
trylab
865da86c14
Merge remote-tracking branch 'upstream/master'
2016-09-08 10:26:30 +08:00
trylab
7a8209ae16
Merge remote-tracking branch 'refs/remotes/uclouvain/master'
2016-09-08 10:24:21 +08:00
Matthieu Darbois
e078172b1c
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-08 00:24:15 +02:00
Stephan Mühlstrasser
8750e183c6
Moved type OPJ_BITFIELD from openjpeg.h to opj_includes.h
...
OPJ_BITFIELD is used only in internal headers and must not
appear in the public openjpeg.h header.
2016-09-07 08:41:01 +02:00
Stephan Mühlstrasser
6c83f1468c
Merge branch 'master' into bit-fields-type
2016-09-07 08:35:19 +02:00
Matthieu Darbois
acfb307df4
Add test for PR 818 ( #822 )
...
update uclouvain/openjpeg#818
2016-09-07 00:00:21 +02:00
Matthieu Darbois
275aad4df8
Update to libpng 1.6.25 ( #821 )
2016-09-06 22:33:45 +02:00
Matthieu Darbois
734d57d5f7
fix incrementing of "l_tcp->m_nb_mcc_records" in opj_j2k_read_mcc ( #820 )
2016-09-06 22:33:26 +02:00
Matthieu Darbois
24e6c308d8
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-06 18:24:29 +08:00
Matthieu Darbois
df417222ee
Add overflow check in opj_j2k_update_image_data ( #817 )
2016-09-06 18:24:29 +08:00
Matthieu Darbois
51155a5c21
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-06 18:24:29 +08:00
Stefan Weil
c9a4e2c80c
Add .gitignore ( #787 )
...
Ignore all files and directories which are generated by `cmake . && make`.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-06 18:24:29 +08:00
Matthieu Darbois
5e4238fe7c
Switch to clang 3.8 ( #814 )
...
clang 3.9 is currently unavailable for precise through apt
2016-09-06 18:24:29 +08:00
trylab
c16bc057ba
Fix an integer overflow issue ( #809 )
...
Prevent an integer overflow issue in function opj_pi_create_decode of
pi.c.
2016-09-06 07:55:49 +02:00
Matthieu Darbois
ea320dab8b
Add overflow check in opj_tcd_init_tile ( #819 )
2016-09-06 07:54:29 +02:00
trylab
7816ec3a11
Fix integer overflow in opj_pi_create_decode
...
Simplify code
2016-09-06 09:16:54 +08:00
Matthieu Darbois
d7e6b7de8a
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-06 01:31:15 +02:00
Matthieu Darbois
ccd9ced49e
Add overflow check in opj_j2k_update_image_data ( #817 )
2016-09-06 00:50:44 +02:00
Matthieu Darbois
9f24b078c7
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-06 00:49:53 +02:00
Stefan Weil
51155950eb
Add .gitignore ( #787 )
...
Ignore all files and directories which are generated by `cmake . && make`.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-09-05 22:07:50 +02:00
Matthieu Darbois
23cee22286
Switch to clang 3.8 ( #814 )
...
clang 3.9 is currently unavailable for precise through apt
2016-09-02 23:58:12 +02:00
trylab
79a397df02
Fix an integer overflow issue
...
Replace OPJ_UINT32 with SIZE_MAX
2016-08-25 12:54:31 +08:00
trylab
a65c9452da
Fix an integer overflow issue
...
Remove header file limits.h
2016-08-25 12:01:44 +08:00
trylab
7f703c696b
Fix an integer overflow issue
...
Making it more secure to call opj_calloc.
2016-08-23 17:02:21 +08:00
TryLab
713429b8fa
Fix an integer overflow issue
...
Prevent an integer overflow issue in function opj_pi_create_decode of
pi.c.
2016-08-16 17:22:57 +08:00
Even Rouault
4f9abb9a45
[Win32] Use _beginthreadex instead of CreateThread()
2016-08-11 21:59:28 +02:00