ffmpeg/libswresample
Michael Niedermayer ec1b8481d1
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-04 15:57:13 +02:00
..
aarch64 all: apply linter fixes 2025-12-07 15:54:59 +00:00
arm arm: Consistently use proper interworking function returns 2024-10-10 23:56:10 +03:00
tests
x86
audioconvert.c
audioconvert.h
dither.c
dither_template.c
libswresample.v
log2_tab.c
Makefile
noise_shaping_data.c
options.c
rematrix.c swresample: Check user chlayout in swr_set_matrix() 2026-05-04 15:57:09 +02:00
rematrix_template.c
resample.c
resample.h
resample_dsp.c
resample_template.c swresample/resample_template: add casts to avoid undefined overflows 2026-05-04 15:57:13 +02:00
soxr_resample.c all: apply linter fixes 2025-12-07 15:54:59 +00:00
swresample.c swresample: Check ch layouts in swr_alloc_set_opts2() 2026-05-04 15:57:09 +02:00
swresample.h
swresample_frame.c all: apply linter fixes 2025-12-07 15:54:59 +00:00
swresample_internal.h swresample: Check user chlayout in swr_set_matrix() 2026-05-04 15:57:09 +02:00
swresampleres.rc
version.c all: apply linter fixes 2025-12-07 15:54:59 +00:00
version.h */version.h: bump minor versions for release/7.1 2024-09-24 17:07:30 +02:00
version_major.h