1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libswscale
Michael Niedermayer f4a7e45239
swscale/output: Fix integer overflow in yuv2rgba64_full_1_c_template()
Fixes: signed integer overflow: -1082982400 + -1079364728 cannot be represented in type 'int'
Fixes: 67910/clusterfuzz-testcase-minimized-ffmpeg_SWS_fuzzer-5329011971522560
The input is 9bit in 16bit, the fuzzer fills all 16bit thus generating "invalid" input
No overflow should happen with valid input.

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 1330a73cca)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-06-15 23:32:45 +02:00
..
aarch64 swscale: aarch64: Fix yuv2rgb with negative strides 2022-11-04 14:31:30 +02:00
arm swscale: arm: fix NEON hscale init 2020-05-15 23:33:46 +03:00
ppc lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments 2021-02-22 23:19:21 -05:00
tests libswscale/tests: add floatimg_cmp test 2020-10-02 14:59:52 +02:00
x86 libswscale/x86/yuv2yuvX: Removes unrolling for mmx and mmxext 2021-04-03 19:43:39 +02:00
alphablend.c swscale/alphablend: Fix slice handling 2021-10-05 23:19:40 +02:00
bayer_template.c swscale: do not drop half of bits from 16bit bayer formats 2020-08-08 12:03:42 +02:00
gamma.c
hscale_fast_bilinear.c
hscale.c
input.c swscale/input: Use more unsigned intermediates 2023-04-07 23:40:37 +02:00
libswscale.v
log2_tab.c
Makefile libswscale/tests: add floatimg_cmp test 2020-10-02 14:59:52 +02:00
options.c
output.c swscale/output: Fix integer overflow in yuv2rgba64_full_1_c_template() 2024-06-15 23:32:45 +02:00
rgb2rgb_template.c swscale/rgb2rgb_template: use shuffle macro on big-endian arches 2020-12-12 23:07:22 -05:00
rgb2rgb.c swscale: aarch64: Add a NEON implementation of interleaveBytes 2020-05-15 23:38:17 +03:00
rgb2rgb.h swscale: aarch64: Add a NEON implementation of interleaveBytes 2020-05-15 23:38:17 +03:00
slice.c swscale/slice: Fix wrong return on error 2021-09-08 21:31:50 +02:00
swscale_internal.h lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bump 2021-01-01 14:14:57 +01:00
swscale_unscaled.c lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bump 2021-01-01 14:14:57 +01:00
swscale.c swscale/swscale: Check srcSliceH for bayer 2024-04-03 02:06:01 +02:00
swscale.h
swscaleres.rc
utils.c swscale/utils: Fix xInc overflow 2024-04-04 21:09:47 +02:00
version.h Bump Versions before release/4.4 branch 2021-03-20 01:01:12 +01:00
vscale.c swscale: make yuv2interleavedX more asm-friendly 2020-06-14 16:34:07 +01:00
yuv2rgb.c swscale/yuv2rgb: cosmetics 2020-07-25 10:20:42 +08:00