ffmpeg/libswscale
Michael Niedermayer 8c22cb5d8b
swscale/rgb2rgb_template: fix signed shift into sign bit
Fixes: left shift of 255 by 24 places cannot be represented in type 'int'
Fixes: 471591904/clusterfuzz-testcase-minimized-ffmpeg_SWS_fuzzer-5141341165387776

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 3ec03b847b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-05-05 15:21:03 +02:00
..
aarch64 all: apply linter fixes 2025-12-03 20:26:49 +01:00
arm sws: rename SwsContext.swscale to convert_unscaled 2021-07-03 15:57:53 +02:00
ppc lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang 2025-03-16 00:38:36 -04:00
tests swscale: introduce isSwappedChroma 2022-01-04 19:39:22 -06:00
x86 swscale/x86/yuv2rgb_template: Add emms to MMX(EXT) functions 2026-03-05 14:44:49 +01:00
alphablend.c swscale/alphablend: Fix slice handling 2021-10-03 20:38:29 +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 all: apply linter fixes 2025-12-03 20:26:49 +01:00
hscale.c avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT 2016-01-27 16:36:46 +00:00
hscale_fast_bilinear.c sws: Move fast bilinear C code into seperate file 2014-07-19 05:36:26 +02:00
input.c swscale/input: Use more unsigned intermediates 2023-02-21 00:37:06 +01:00
libswscale.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
log2_tab.c lsws: duplicate ff_log2_tab 2014-08-12 20:52:21 +02:00
Makefile lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
options.c Remove unnecessary libavutil/(avutil|common|internal).h inclusions 2022-02-24 12:56:49 +01:00
output.c swscale/output: Fix integer overflow in yuv2ya16_X_c_template() 2025-11-23 04:32:17 +01:00
rgb2rgb.c all: Replace if (ARCH_FOO) checks by #if ARCH_FOO 2022-06-15 04:56:37 +02:00
rgb2rgb.h Remove unnecessary libavutil/(avutil|common|internal).h inclusions 2022-02-24 12:56:49 +01:00
rgb2rgb_template.c swscale/rgb2rgb_template: fix signed shift into sign bit 2026-05-05 15:21:03 +02:00
slice.c swscale/slice: clear allocated memory in alloc_lines() 2025-08-04 16:35:43 +02:00
swscale.c swscale/swscale: Use unsigned operation to avoid undefined behavior 2025-08-04 16:35:32 +02:00
swscale.h Keep including the full version.h when headers are included externally 2022-03-19 00:01:57 +02:00
swscale_internal.h Remove unnecessary libavutil/(avutil|common|internal).h inclusions 2022-02-24 12:56:49 +01:00
swscale_unscaled.c swscale/swscale_unscaled: use 8 line alignment for planarCopyWrapper with dithering 2025-08-13 00:14:19 +02:00
swscaleres.rc Add Windows resource file support for shared libraries 2013-12-05 23:42:07 +01:00
utils.c swscale/utils: zero init filter memory as before 2026-05-05 15:20:59 +02:00
version.c lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
version.h Bump Versions for 5.1 branch 2022-07-13 00:27:37 +02:00
version_major.h libswscale: Split version.h 2022-03-16 14:05:26 +02:00
vscale.c all: apply linter fixes 2025-12-03 20:26:49 +01:00
yuv2rgb.c swscale/yuv2rgb: Use 64bit for brightness computation 2024-06-13 18:30:04 +02:00