ffmpeg/libswresample
Michael Niedermayer 2a0ae4d576
swresample/resample_template: add casts to avoid undefined overflows
resample_linear can produce overflows with craftet input,
The added casts should have no effect on the binary output or the operations they
just change things to a defined regime

Fixes: signed integer overflow: 2069416960 + 78151680 cannot be represented in type 'int'
Fixes: 472047214/clusterfuzz-testcase-minimized-ffmpeg_SWR_fuzzer-6374046976770048

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 17cad7ac75)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-05-05 18:55:03 +02:00
..
aarch64 all: apply linter fixes 2025-12-07 15:55:56 +00:00
arm swresample/arm: rename labels to fix xcode build error 2018-04-28 18:08:52 +02:00
tests
x86 swresample: Use channel count in rematrix initialization 2018-07-26 02:42:42 +02:00
audioconvert.c libswresample/audioconvert: Fix undefined NULL + 0 2021-04-02 21:39:54 +02:00
audioconvert.h
dither.c
dither_template.c
libswresample.v
log2_tab.c
Makefile
noise_shaping_data.c
options.c
rematrix.c swresample/rematrix: handle 22.2 as a 9 channel layout 2020-08-18 22:47:35 +03:00
rematrix_template.c
resample.c swresample/resample: Fix flush refelction length 2017-08-16 00:54:17 +02:00
resample.h
resample_dsp.c
resample_template.c swresample/resample_template: add casts to avoid undefined overflows 2026-05-05 18:55:03 +02:00
soxr_resample.c all: apply linter fixes 2025-12-07 15:55:56 +00:00
swresample.c Silence "string-plus-int" warning shown by clang. 2020-01-06 22:38:56 +01:00
swresample.h libswresample/swresample: remove obsolete code 2017-06-27 23:21:53 +02:00
swresample_frame.c all: apply linter fixes 2025-12-07 15:55:56 +00:00
swresample_internal.h
swresampleres.rc
version.h Bump Versions before release/4.4 branch 2021-03-20 01:01:12 +01:00