avcodec/wnv1: More strict buffer size check
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 01:18:02 +0000 (03:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 01:20:09 +0000 (03:20 +0200)
commit7f50c25124a015a539823077bb302ff0c7ce8963
treea61694239555d7a3400b7990646d92b4bcca0a77
parentca6776a993903dbcfef5ae8a18556c40ecf83e1c
avcodec/wnv1: More strict buffer size check

This requires at least 25% of a picture to allocate and decode it

Fixes: Timeout
Fixes: 1845/clusterfuzz-testcase-minimized-5075974343360512

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