]> git.sesse.net Git - ffmpeg/commit
avcodec/g729dec: Avoid using buf_size
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Nov 2019 20:21:51 +0000 (21:21 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 Dec 2019 16:17:04 +0000 (17:17 +0100)
commit336f9461df7d2005db9d1af4f5f81fd033025ce2
treeb3e7a7432c695dd074bc4245f806a3d6238f1fbc
parent576746b4e30069a922564e0019ef0758811e771d
avcodec/g729dec: Avoid using buf_size

buf_size is not updated as buf is advanced so it is wrong after the first
iteration

Fixes: Timeout (160sec -> 27sec)
Fixes: 18658/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G729_fuzzer-5729784269373440
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/g729dec.c