aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h261enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-11-05 23:28:35 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-01 17:49:31 +0100
commita67d997ad7358cbc9fbcf2c54f537c403786416b (patch)
tree726704defb84cd0c5415d16376aea634f1bf3404 /libavcodec/h261enc.c
parent3f186986520f3baa05de9d3126fa48ec8a270f36 (diff)
downloadffmpeg-a67d997ad7358cbc9fbcf2c54f537c403786416b.tar.gz
avcodec/g729dec: Use 64bit and clip in scalar product
The G729 reference decoder clips after each individual operation and keeps track if overflow occurred (in the fixed point implementation), this here is simpler and faster but not 1:1 the same what the reference does. Non fuzzed samples which trigger any such overflow are welcome, so the need and impact of different clipping solutions can be evaluated. Fixes: signed integer overflow: 1271483721 + 1073676289 cannot be represented in type 'int' Fixes: 18617/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5137705679978496 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 bf9c4a12750e593d753011166b066efce208d9e0) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h261enc.c')
0 files changed, 0 insertions, 0 deletions