]> granicus.if.org Git - openjpeg/commit
[trunk] Import commit fc884aee2b69c78500e65c3d05bf216791a9ea4a from ghostpdl
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 25 Feb 2014 13:38:32 +0000 (13:38 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 25 Feb 2014 13:38:32 +0000 (13:38 +0000)
commit901c9d8ae02a264fef45f700e11e7cda99b1d9ed
tree4f313751c50409fd65f45b1c8dd739b56750e3c5
parent6145c8280478c84658982d110dbc72fff4979e0d
[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
src/lib/openjp2/t2.c