avcodec/magicyuv: Check that vlc len is not too large
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Jul 2017 15:25:16 +0000 (17:25 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 01:53:54 +0000 (03:53 +0200)
commit94077cf6735afd1a166848d388c3a59764e7c71c
tree991995e5fafa8f9804873abdfb7a88f986c88368
parent506bbbc09929e1d2778259fb9549743c5bce5fdc
avcodec/magicyuv: Check that vlc len is not too large

Fixes: runtime error: shift exponent -95 is negative
Fixes: 2568/clusterfuzz-testcase-minimized-4926115716005888

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 341f01290c2353669ed2263f56e1a9f4c67cc597)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/magicyuv.c