avcodec/h264_ps: Check offset_for_non_ref_pic, offset_for_top_to_bottom_field and...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 May 2019 17:36:55 +0000 (19:36 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 12 May 2019 14:32:16 +0000 (16:32 +0200)
commit7c6f2bfdb25ccadf6ba82dc72eaad1b692122d9a
tree4fa639c948d62faa4c6aeb847358eda19c5de8f6
parent407e7c34ca8a3047e4f1b14287053638b4add68d
avcodec/h264_ps: Check offset_for_non_ref_pic, offset_for_top_to_bottom_field and offset_for_ref_frame

Fixes: signed integer overflow: -2147483648 + -1 cannot be represented in type 'int'
Fixes: 14444/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5675880333967360

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