]> git.sesse.net Git - ffmpeg/commit
avcodec/diracdec: Correct max pixels check
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Feb 2019 20:37:45 +0000 (21:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 3 Mar 2019 12:17:02 +0000 (13:17 +0100)
commit1eb35eb50ed32c9f36b6f3e39e8058d13f693c5e
treee98ef914fc45fba864a5e801ddb36bce0aa09820
parent73b62f302695822bf05f9fa43c8967d05868d49b
avcodec/diracdec: Correct max pixels check

Dirac internally allocates 5 images per plane and frame currently. One being the actual
image the other 4 being filtered for motion compensation.

Fixes: Out of memory
Fixes: 12870/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5684825871089664
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c