summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/pi.c
AgeCommit message (Collapse)Author
2017-07-29Fix warnings in pi.c raised by VS11 analyze (#190)Even Rouault
2017-07-29opj_pi_update_decode_poc(): limit layno1 to the number of layers ↵Even Rouault
(CVE-2016-1626 and CVE-2016-1628, #850) This has been recently fixed in a less elegant way per 80818c39f5bfbac37768fcee95b0ffeceaa77264
2017-07-29opj_pi_next_pcrl(): avoid undefined shift behaviour. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2787. Credit to OSS Fuzz
2017-07-27opj_pi_next_rpcl / opj_pi_next_pcrl / opj_pi_next_cprl: avoid int overflow ↵Even Rouault
(#895) Fixes int overflow on openjeg-crashes-2017-07-27/id:000000,sig:08,src:000879,op:flip2,pos:128.jp2
2017-07-26Fix various undefined shift behaviour in pi.cEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2496 Credit to OSS Fuzz
2017-07-26Avoid division by zero in opj_pi_next_rpcl, opj_pi_next_pcrl, ↵Even Rouault
opj_pi_next_cprl (#938) Fixes crash on id_000004,sig_06,src_000679,op_arith8,pos_49,val_-17
2017-07-26Avoid index out of bounds access to pi->include[] (#938)Even Rouault
Fix id:000098,sig:11,src:005411,op:havoc,rep:2 test case
2017-07-26Avoid division by zero in opj_pi_next_rpcl, opj_pi_next_pcrl and ↵Even Rouault
opj_pi_next_cprl (#938) Fixes issues with id:000026,sig:08,src:002419,op:int32,pos:60,val:+32 and id:000019,sig:08,src:001098,op:flip1,pos:49
2017-05-09Reformat whole codebase with astyle.options (#128)Even Rouault
2016-09-15Add overflow checks for opj_aligned_malloc (#841)Matthieu Darbois
See https://pdfium.googlesource.com/pdfium/+/b20ab6c7acb3be1393461eb650ca8fa4660c937e/third_party/libopenjpeg20/0020-opj_aligned_malloc.patch
2016-09-08Cast to size_t before multiplicationMatthieu Darbois
Need to cast to size_t before multiplication otherwise overflow check is useless.
2016-09-06Fix an integer overflow issue (#809)trylab
Prevent an integer overflow issue in function opj_pi_create_decode of pi.c.
2016-04-28Fix unsigned int overflow reported by UBSan (#761)Matthieu Darbois
* Fix unsigned int overflow reported by UBSan Please add -DOPJ_UBSAN_BUILD to CFLAGS when building with -fsanitize=undefined,unsigned-integer-overflow It seems clang/gcc do not allow to disable checking for block of code other than function or file.
2016-01-06Fix duplicate article in commentsStefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-07-26Remove some warnings when buildingmayeut
Update #442
2015-07-18Add some missing staticmayeut
Still needs to check j2k.c & jp2.c Update uclouvain/openjpeg#243
2015-02-02[trunk] added overflow checks (fixes issue 431)Antonin Descampe
Thanks mdarbois
2015-01-15[trunk] fixed a buffer overflow in opj_tcd_init_decode_tileAntonin Descampe
Update issue 431
2014-10-01[trunk] fixed warning from r2891Antonin Descampe
2014-09-30[trunk] fixed bad use of case statement (fixes issue 381)Antonin Descampe
2014-09-16[trunk] improve memory management (fixes issue 359)Antonin Descampe
2014-04-17[trunk] refactoring of rsiz, profiles, and extensions managementAntonin Descampe
2014-04-03[trunk] updated copyright and added copyright notice required by ISO, in ↵Antonin Descampe
each file; updated AUTHORS, NEWS
2014-03-13[trunk] Add some documention in the pi codeMathieu Malaterre
2014-03-07[trunk] Another round of fixes for sign conversion warnings.Mathieu Malaterre
Update issue 256
2012-11-15[trunk] move opj_bool to OPJ_BOOL to follow the other typeMickael Savinaud
2012-11-15[trunk] rename public symbols with OPJ_ prefix (enum part)Mickael Savinaud
2012-11-15[trunk] rename public symbols with OPJ_ prefixMickael Savinaud
2012-11-13[trunk] remove warnings raised by flags -Wall -Wextra -pedanticMickael Savinaud
2012-11-13[trunk] remove warnings raised by flags -Wall -Wextra -pedantic and vs9 analyzerMickael Savinaud
2012-10-29[trunk] Fix remainings issues with doxygen docMathieu Malaterre
Convert DOS files to UNIX eol
2012-10-29[trunk] remove warnings related to the use of -Wall -Wextra -pedanticMickael Savinaud
2012-10-25[trunk] [trunk] remove old opj_tcp and rename opj_tcp_v2 to opj_tcpMickael Savinaud
2012-10-25[trunk] [trunk] remove old opj_cp and rename opj_cp_v2 to opj_cpMickael Savinaud
2012-10-15[trunk] Add missing newline characterMathieu Malaterre
2012-10-05[trunk] rename int.h to opj_intmath.h and rename all its functions with opj_ ↵Mickael Savinaud
prefix
2012-10-03[trunk]remove warnings in pi.c through the update of poc struct types with ↵Mickael Savinaud
new opj_types.
2012-10-03[trunk] (style) move global pi functions to the right place and update ↵Mickael Savinaud
indentation
2012-10-03[trunk] remove old v1 functions and rename pi_initialise_encode_v2 to ↵Mickael Savinaud
opj_pi_initialise_encode; pi_create_encode_v2 to opj_pi_create_decode; pi_destroy_v2 to opj_pi_destroy; pi_create_decode_v2 to opj_pi_create_decode
2012-10-03[trunk] update pi_check_next_level with the opj_ prefix and change output ↵Mickael Savinaud
type to be more convenient
2012-10-03[trunk]rename pi_update_encoding_parameters to opj_pi_update_encoding_parametersMickael Savinaud
2012-10-03[trunk] replace pi_next by opj_pi_nextMickael Savinaud
2012-10-03[trunk] update local function of pi.c with the opj_ prefix and the new opj typesMickael Savinaud
2012-09-28[trunk] Start FolderReorgProposal taskMathieu Malaterre
Update issue 177