avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Oct 2018 20:35:37 +0000 (22:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 22:51:55 +0000 (00:51 +0200)
commit305e523105f6f59e7572050f19edc9f4671c036c
tree6e1765296f16116919eaf19e111186117df0e9ff
parente90f0ac334f2bec0961955dceb824148594a4016
avcodec/jpeg2000dec: Fix off by 1 error in JPEG2000_PGOD_CPRL handling

Fixes: assertion failure
Fixes: 10785/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5672160496975872

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c