1
0
Fork 0
FFmpeg/libswscale
Michael Niedermayer dcc369b8f5
swscale/input: Use more unsigned intermediates
Same principle as previous commit, with sufficiently huge rgb2yuv table
values this produces wrong results and undefined behavior.
The unsigned produces the same incorrect results. That is probably
ok as these cases with huge values seem not to occur in any real
use case.

Fixes: signed integer overflow
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ba209e3d51)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-02-21 00:37:18 +01:00
..
arm swscale: disable ARM code until its build failure with clang/iphone is fixed 2014-01-12 19:58:38 +01:00
ppc swscale/ppc/yuv2rgb_altivec: POWER LE support in the macros vec_unh() and vec_unl() 2015-07-16 14:27:58 +02:00
x86 swscale/x86/output: Fix yuv2planeX_16* with unaligned destination 2016-02-17 05:17:35 +01:00
Makefile swscale: re-enable gamma 2015-09-04 19:00:20 -03:00
alphablend.c swscale/alphablend: fix pointer cast 2015-08-22 20:11:48 +00:00
bayer_template.c swscale/bayer_template: Add () to protect the argument of BAYER_READ() 2015-02-18 01:55:15 +01:00
colorspace-test.c Merge commit 'd488c3bcbaf7ddda42597e014deb661a7e9e2112' 2012-08-29 18:04:34 +02:00
gamma.c swscale: re-enable gamma 2015-09-04 19:00:20 -03:00
hscale.c swscale: add license headers and copyrights 2015-08-18 22:56:50 +02: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:18 +01:00
libswscale.v swscale: Do not make ff_ symbols globally visible. 2012-10-10 02:08:01 +02:00
log2_tab.c lsws: duplicate ff_log2_tab 2014-08-12 20:52:21 +02:00
options.c swscale/alphablend: Support SWS_ALPHA_BLEND_CHECKERBOARD 2015-08-09 17:11:53 +02:00
output.c swscale/output: Fix integer overflow in yuv2rgb_write_full() with out of range input 2020-04-23 21:29:01 +02:00
rgb2rgb.c swscale/rgb2rgb_template: Implement shuffle_bytes_0321_c and fix shuffle_bytes_2103_c on BE 2015-06-23 05:09:06 +02:00
rgb2rgb.h swscale/rgb2rgb_template: Implement shuffle_bytes_0321_c and fix shuffle_bytes_2103_c on BE 2015-06-23 05:09:06 +02:00
rgb2rgb_template.c swscale/rgb2rgb_template: Fix signedness of v in shuffle_bytes_2103_c() 2015-06-23 05:09:11 +02:00
slice.c swscale/slice: Fix wrong return on error 2021-10-17 21:34:53 +02:00
swscale-test.c libswcale: Fix possible string overflow in test. 2019-12-02 19:41:48 +01:00
swscale.c swscale/swscale: Fix several invalid shifts related to vChrDrop 2020-04-23 21:29:01 +02:00
swscale.h swscale/swscale: Document param[0..1] 2015-08-09 14:33:19 +02:00
swscale_internal.h swscale/vscale: Check that 2 tap filters are bilinear before using bilinear code 2016-01-15 12:30:41 +01:00
swscale_unscaled.c swscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slices 2016-09-18 00:18:11 +02:00
swscaleres.rc Add Windows resource file support for shared libraries 2013-12-05 23:42:07 +01:00
utils.c swscale/utils: Fix chrSrcHSubSample for GBRAP16 2016-02-24 00:04:51 +01:00
version.h swscale: support internal scaler cascades 2014-10-11 05:05:17 +02:00
vscale.c swscale/vscale: Check that 2 tap filters are bilinear before using bilinear code 2016-01-15 12:30:41 +01:00
yuv2rgb.c swscale/yuv2rgb: Fix vertical dither offset with slices 2020-04-23 21:29:01 +02:00