xinxinlx / openjpeg

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

Bug in jp2.c of openjpeg-branch15-r2833 #335

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
./j2k_to_image -i beach_64bitsbox.jp2 -o beach.png

[ERROR] Integer overflow in box->length
[ERROR] Failed to decode jp2 structure
ERROR -> j2k_to_image: failed to decode image!

The error message is reported in jp2_read_boxhdr().

'beach_64bitsbox.jp2' contains an 'XML' box that
is not skipped.

./j2k_to_image -i beach_64bitsbox.jp2 -o beach.png

[INFO] tile 1 of 1
[INFO] - tiers-1 took 0.015000 s
[INFO] - dwt took 0.001000 s
[INFO] - tile decoded in 0.017000 s
Successfully generated Outfile beach.png

The patch is attached. It skips at least one 'XML' box.

winfried

Original issue reported on code.google.com by szukw...@arcor.de on 9 Apr 2014 at 1:10

Attachments:

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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