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>
Sun, 18 Nov 2018 01:35:03 +0000 (02:35 +0100)
commit353ef58a8279d3c3a45fe18d1245d84cb843eb18
tree8f5a8125de14148c4c426f869626d2d062f212de
parent1effc4baa19de9ee203c7bc4b55a71270aeb3eef
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>
(cherry picked from commit 305e523105f6f59e7572050f19edc9f4671c036c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c