RealmeIP / openjpeg

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

Unknown values for 'colr' box should result in unknown colorspace, not an error during parsing #247

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the JPX format, an 'Meth' value of 1 in the 'colr' box can have additional 
data. For a strictly JP2 format this is not possible. The 2.0.0 code considers 
it an error when the 'colr' box has additional data. I think this should be 
fixed so that it ignores additional data (and results in an unknown colorspace).

This can be fixed by changing openjp2/jp2.c, line 1088 from:

if (p_colr_header_size != 7) {

to:

if (p_colr_header_size < 7) {

Original issue reported on code.google.com by brta.enf...@gmail.com on 16 Oct 2013 at 8:30

GoogleCodeExporter commented 8 years ago

Original comment by mathieu.malaterre on 25 Feb 2014 at 3:49

GoogleCodeExporter commented 8 years ago
ok, now I understand where the sumatrapdf got this patch from:

https://code.google.com/p/openjpeg/issues/detail?id=225#c16

Original comment by mathieu.malaterre on 25 Feb 2014 at 3:50

GoogleCodeExporter commented 8 years ago
Would it be possible to get one of those Part-2 file please ?

Original comment by mathieu.malaterre on 25 Feb 2014 at 4:23

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2464.

Original comment by mathieu.malaterre on 26 Feb 2014 at 11:22