Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
Fix CVE-2018-19542: Check for NULL pointer in jp2_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
theta682 authored and jubalh committed Jun 19, 2020
1 parent 9aef6d9 commit ade4b48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libjasper/jp2/jp2_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ jas_image_t *jp2_decode(jas_stream_t *in, const char *optstr)
jas_image_setcmpttype(dec->image, newcmptno, jp2_getct(jas_image_clrspc(dec->image), 0, channo + 1));
}
#endif
} else {
jas_eprintf("error: invalid MTYP in CMAP box\n");
goto error;
}
}
}
Expand Down

0 comments on commit ade4b48

Please sign in to comment.