ffmpeg/libswscale
Sean McGovern 34b4ca8696
swscale: prevent undefined behaviour in the PUTRGBA macro
For even small values of 'asrc[x]', shifting them by 24 bits or more
will cause arithmetic overflow and be caught by
GCC's undefined behaviour sanitizer.

Ensure the values do not overflow by up-casting the bracketed
expressions involving 'asrc' to uint32_t.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-07-10 18:10:10 +02:00
..
aarch64 swscale/aarch64: Add argb/abgr to yuv 2024-07-05 16:32:31 +08:00
arm
loongarch swscale: [loongarch] Fix undeclared functions prob. 2024-05-31 02:20:23 +02:00
ppc swscale/ppc/swscale_ppc_template: Reindent after the previous commit 2024-04-04 16:47:21 +02:00
riscv riscv: probe for Zbb extension at load time 2024-06-11 20:12:37 +03:00
tests swscale/tests/swscale: Add help text 2024-02-15 23:07:44 +01:00
x86 swscale/x86/yuv2rgb: Detemplatize 2024-07-10 12:25:32 +02:00
Makefile
alphablend.c
bayer_template.c
gamma.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
half2float.c
hscale.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
hscale_fast_bilinear.c
input.c swscale: add GBRAP14 format support 2023-09-28 19:37:58 +02:00
libswscale.v
log2_tab.c
options.c all: use designated initializers for AVOption.unit 2024-02-14 14:53:41 +01:00
output.c swscale/output: Avoid undefined overflow in yuv2rgb_write_full() 2024-06-26 20:49:36 +02:00
rgb2rgb.c
rgb2rgb.h
rgb2rgb_template.c
slice.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
swscale.c swscale/swscale: Use ptrdiff_t for linesize computations 2024-07-07 23:36:30 +02:00
swscale.h
swscale_internal.h swscale: remove unconditional #define DITHER1XBPP 2024-07-10 12:25:03 +02:00
swscale_unscaled.c swscale: add GBRAP14 format support 2023-09-28 19:37:58 +02:00
swscaleres.rc
utils.c swscale: remove unconditional #define DITHER1XBPP 2024-07-10 12:25:03 +02:00
version.c lib*/version: Use static_assert for static asserts 2024-03-31 00:08:42 +01:00
version.h Bump after 7.0 branch point 2024-03-27 01:04:54 +01:00
version_major.h libs: bump major version for all libraries 2024-03-07 11:29:43 -03:00
vscale.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
yuv2rgb.c swscale: prevent undefined behaviour in the PUTRGBA macro 2024-07-10 18:10:10 +02:00