]> git.sesse.net Git - ffmpeg/commit
avcodec/h264_slice: fix undefined integer overflow with POC in error concealment
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 7 Oct 2020 21:22:59 +0000 (23:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Oct 2020 19:27:23 +0000 (21:27 +0200)
commit182d7a74276ea70aec6d3d7bd9a1da3d327358f2
treee3311043db58fc54719b854c17d02875c1f6f379
parentcc072f7353d5d73d86650a68b7d79832fb4338cd
avcodec/h264_slice: fix undefined integer overflow with POC in error concealment

Alternatively the POC could be changed to 64bit. the large values seem to be within what is allowed.

Fixes: signed integer overflow: 2147483646 + 2 cannot be represented in type 'int'
Fixes: 26076/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5711127201447936
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_slice.c