Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openjpeg decompress error #329

Closed
gcode-importer opened this issue Apr 3, 2014 · 4 comments
Closed

openjpeg decompress error #329

gcode-importer opened this issue Apr 3, 2014 · 4 comments
Assignees
Milestone

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 329

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?


Reported by xiaochuan.liu19880512 on 2014-04-03 08:29:54


- _Attachment: [Robert1_30_SIGABRT.PC.0x7ffff70c2a75.CODE.-6.ADDR.0x11020000079c6.INSTR.dec_eax.TIME.2010-06-09.11.47.31.PID.31174._12pdf.jp2](https://storage.googleapis.com/google-code-attachments/openjpeg/issue-329/comment-0/Robert1_30_SIGABRT.PC.0x7ffff70c2a75.CODE.-6.ADDR.0x11020000079c6.INSTR.dec_eax.TIME.2010-06-09.11.47.31.PID.31174._12pdf.jp2)_
@gcode-importer
Copy link
Author

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

Reported by szukw000 on 2014-04-03 16:55:02

@gcode-importer
Copy link
Author

Would need to be fixed ASAP.

Reported by malaterre on 2014-04-28 07:51:21

  • Labels added: Priority-High, Milestone-Release2.1
  • Labels removed: Priority-Medium

@gcode-importer
Copy link
Author

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

Reported by mayeut on 2014-11-22 18:38:56

@gcode-importer
Copy link
Author

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

Reported by detonin on 2015-01-15 16:52:31

  • Status changed: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants