avcodec/ylc: Check count in build_vlc()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 15:20:42 +0000 (17:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 15:21:41 +0000 (17:21 +0200)
commit67b30decf7793523f7fdaef6fdf7f1179ef42b18
treeba95995138cbadb337598d4d657861a71f5f926a
parentb9c032ebc0ad17ac0ffefb915ff96baf9d79cab1
avcodec/ylc: Check count in build_vlc()

Fixes: runtime error: signed integer overflow: 211633430 + 2147483647 cannot be represented in type 'int'
Fixes: 1874/clusterfuzz-testcase-minimized-5037763613163520

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