avcodec/pafvideo: Check allocated frame size
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Feb 2018 01:14:49 +0000 (02:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit65fc03589fb48ee1d24797ad3984199b01feec82
tree35d860fae9b4dc4067070c874a03a88537d80664
parent55e6c6b5feb7e2a9110fab1dc06ced23360b14e2
avcodec/pafvideo: Check allocated frame size

Fixes: OOM
Fixes: 5549/clusterfuzz-testcase-minimized-5390553567985664

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 66acb630286cf1bf03bfbdab6c7c784ff20bde61)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pafvideo.c