Opened 8 years ago

Closed 8 years ago

#6403 closed defect (invalid)

Segfault when translating large JP2000 with JP2OpenJEPG

Reported by: swalter75 Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 2.0.2
Severity: normal Keywords: JP2OpenJPEG
Cc:

Description

Translating a large JP2 file with gdal 2.0.2 and OpenJPEG 2.1.0 breaks with "Segmentation fault" with signal 11 in opj_t1_decode_cblks.

To reproduce, the large JP2 can be downloaded at

http://hirise-pds.lpl.arizona.edu/PDS/RDR/ESP/ORB_028000_028099/ESP_028011_2055/ESP_028011_2055_RED.JP2

Change History (4)

comment:1 by swalter75, 8 years ago

Summary: Segfault whe translating large JP2000 with JP2OpenJEPGSegfault when translating large JP2000 with JP2OpenJEPG

comment:2 by Even Rouault, 8 years ago

That might be a bug in openjpeg itself. Did you check if that works with opj_decode ?

comment:3 by swalter75, 8 years ago

Thanks - the problem exists with opj_decode as well. I found a working solution by patching this fork of the OpenJPEG library: https://github.com/GrokImageCompression/ronin . See also: https://github.com/uclouvain/openjpeg/issues/720

comment:4 by Even Rouault, 8 years ago

Resolution: invalid
Status: newclosed

OK thanks for the follow-up. Closing as not a GDAL bug

Note: See TracTickets for help on using tickets.