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
riscv riscv: probe for Zbb extension at load time 2024-06-11 20:12:37 +03:00
tests
x86 swscale/x86/yuv2rgb: Detemplatize 2024-07-10 12:25:32 +02:00
Makefile
alphablend.c
bayer_template.c
gamma.c
half2float.c
hscale.c
hscale_fast_bilinear.c
input.c
libswscale.v
log2_tab.c
options.c
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
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
swscaleres.rc
utils.c swscale: remove unconditional #define DITHER1XBPP 2024-07-10 12:25:03 +02:00
version.c
version.h
version_major.h
vscale.c
yuv2rgb.c swscale: prevent undefined behaviour in the PUTRGBA macro 2024-07-10 18:10:10 +02:00