avcodec/cinepak: Check input packet size before frame reallocation
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 May 2017 20:18:23 +0000 (22:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Jun 2017 21:16:54 +0000 (23:16 +0200)
commit653de8249dab1a6c96bc4d5a049b3b9234c9a4ba
tree7ebe4fff8bbe5460cbb90135ab74fe78185b4134
parent041ad6d2bb44eb4a673e5de61c7e7b0766170714
avcodec/cinepak: Check input packet size before frame reallocation

Reduces time spend decoding 1917/clusterfuzz-testcase-minimized-5023221273329664

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