]> git.sesse.net Git - ffmpeg/commit
avcodec/g2meet: Check if adjusted pixel was on the stack
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Sep 2019 18:05:09 +0000 (20:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Oct 2019 12:49:04 +0000 (14:49 +0200)
commit9c84c162e9f9f000ef47d4fcd07354805f38d455
tree0589f20f32f0fdb03032603e6b2a4b342c4ed7ee
parent9847380f5f5a3850ecc9f32fa310a7e5e3f703f7
avcodec/g2meet: Check if adjusted pixel was on the stack

This basically checks if a pixel that was coded with prediction
and residual could have been stored using a previous case.
This avoids basically a string of 0 symbols stored in less than
50 bytes to hit a O(n²) codepath.

Fixes: Timeout (too slow to wait -> immediately)
Fixes: 8668/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-4895946310680576
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/g2meet.c