avcodec/magicyuv: Check bits left in flags&1 branch
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 23 Jun 2018 21:37:10 +0000 (23:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:02:12 +0000 (19:02 +0200)
commit84280dc7cfa4d512061d6a5c6574a289b59eaf00
treefe0f3009e9e5ae14793db977cf02c98ff78395e1
parent2c404cc11a02d8b4368080fe3268f652fb2d998b
avcodec/magicyuv: Check bits left in flags&1 branch

Fixes: Timeout
Fixes: 8690/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MAGICYUV_fuzzer-6542020913922048

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7719b8ccc790b6e1325af0afe2b65e2334a7173c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/magicyuv.c