diff options
author | Kent Mein <mein@cs.umn.edu> | 2009-05-29 23:11:04 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2009-05-29 23:11:04 +0400 |
commit | a1962cf3ee02b504babd4cc6fcff8e66bc9ea715 (patch) | |
tree | 3023ad1def38bf766ed2d0c7c1d4ba1579123631 /extern | |
parent | 3521789e3591ec968a1c09e228020b24fa47064e (diff) |
This was found by coverity
CID: 568
Checker: FORWARD_NULL (help)
File: base/src/extern/libopenjpeg/jp2.c
Function: jp2_decode
Description: Variable "image" tracked as NULL was dereferenced.
fixed by just updating to latest version of the file from
external svn branch.
Kent
Diffstat (limited to 'extern')
-rw-r--r-- | extern/libopenjpeg/jp2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extern/libopenjpeg/jp2.c b/extern/libopenjpeg/jp2.c index 14f9493c401..b2831cfb0b5 100644 --- a/extern/libopenjpeg/jp2.c +++ b/extern/libopenjpeg/jp2.c @@ -561,6 +561,7 @@ opj_image_t* jp2_decode(opj_jp2_t *jp2, opj_cio_t *cio, opj_codestream_info_t *c image = j2k_decode(jp2->j2k, cio, cstr_info); if(!image) { opj_event_msg(cinfo, EVT_ERROR, "Failed to decode J2K image\n"); + return NULL; } /* Set Image Color Space */ |