troosh / openjpeg

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

jp2_read_boxhdr() call ignores return value #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In 'jp2.c' the function 'jp2_read_boxhdr()' is used.
It may return OPJ_FALSE.

But this is ignored:

 jp2_read_boxhdr(cinfo, cio, &box);

The call should be changed to:

 if(jp2_read_boxhdr(cinfo, cio, &box) == OPJ_FALSE)
  return OPJ_FALSE;

winfried

Original issue reported on code.google.com by szukw...@arcor.de on 17 Sep 2011 at 9:52

GoogleCodeExporter commented 9 years ago
The whole code simply discard the return value !

Original comment by mathieu.malaterre on 11 Jan 2012 at 9:21

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1705.

Original comment by mathieu.malaterre on 29 May 2012 at 5:49