ryanqq / openjpeg

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

Expected endianness with raw input is not documented leading to SEGFAULT #251

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The expected endianness for the raw input format is not documented. 

This may lead to :

1. confusion
2. codeblock data buffer overflow. The of the buffer is not large enough the 
wavelet coefficient of the garbled input.

The user will have a hard time to diagnose this issue because lossless 
compression works flawlessly while lossy compression causes a segmentation 
fault.

Original issue reported on code.google.com by jf.pamb...@gmail.com on 16 Dec 2013 at 12:42

GoogleCodeExporter commented 9 years ago
You should either pick raw or rawl as explained in opj_compress. closing as 
wontfix

Original comment by mathieu.malaterre on 16 Dec 2013 at 7:56

GoogleCodeExporter commented 9 years ago
I can't find this explanation in opj_compress on the current trunk. I have lost 
several hours looking into this issue thinking it was related to the signed 
nature of my images. 

The documentation is lacking and parameter mistakes will cause segmentation 
faults due to a buffer overflow. Is this a normal behavior?

Original comment by jf.pamb...@gmail.com on 16 Dec 2013 at 2:26