xinxinlx / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

openjpeg decompress error #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The jp2 image in attach will be decompressed failed, 

I get a large l_current_data_size number(the value is 0x85000014) in the 
opj_jp2_read_header_procedure function, 

So call opj_realloc with l_current_data_size parameter return null.

Why the value of l_current_data_size is so big?

When I used kakadu lib, the image can be decompressed correctly.

Is there any bug?

Original issue reported on code.google.com by xiaochua...@gmail.com on 3 Apr 2014 at 8:29

Attachments:

GoogleCodeExporter commented 9 years ago
I use openjpeg-2.x-trunk-r2833.

kdu_expand -i 
issue329-Robert1_30_SIGABRT.PC.0x7ffff70c2a75.CODE.-6.ADDR.0x11020000079c6.INSTR
.dec_eax.TIME.2010-06-09.11.47.31.PID.31174._12pdf.jp2  -o issue329-Robert1.bmp

Error in Kakadu File Format Support:
JP2-family data source contains a malformed file type box.

opj_decompress -i 
issue329-Robert1_30_SIGABRT.PC.0x7ffff70c2a75.CODE.-6.ADDR.0x11020000079c6.INSTR
.dec_eax.TIME.2010-06-09.11.47.31.PID.31174._12pdf.jp2  -o issue329-Robert1.png

[INFO] Stream reached its end !
[ERROR] Problem with reading JPEG2000 box, stream error
ERROR -> opj_decompress: failed to read the header

winfried

Original comment by szukw...@arcor.de on 3 Apr 2014 at 4:55

GoogleCodeExporter commented 9 years ago
Would need to be fixed ASAP.

Original comment by mathieu.malaterre on 28 Apr 2014 at 7:51

GoogleCodeExporter commented 9 years ago
r2944,

./bin/opj_decompress -i ../../data/issue329.jp2 -o 0.bmp
[ERROR] Invalid box size -2063597540 for box 'ftyp'. Need -2063597548 bytes, 
44731 bytes remaining 
ERROR -> opj_decompress: failed to read the header

Same result as comment #1 for du_expand

Original comment by m.darb...@gmail.com on 22 Nov 2014 at 6:38

GoogleCodeExporter commented 9 years ago
Provided code-stream is corrupted and opj_decompress returns gracefully (as 
kakadu 7.4 does). Nothing to be done here.

Original comment by antonin on 15 Jan 2015 at 4:52