1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-03 05:10:03 +02:00
FFmpeg/libswscale
Adam Richter b55cf5f53d libswcale: Fix possible string overflow in test.
In libswcale/tests/swcale.c, the function fileTest() calls sscanf in
an argument of "%12s" on character srcStr[] and dstStr[], which are
only 12 bytes.  So, if the input string is 12 characters, a
terminating null byte can be written past the end of these arrays.

This bug was found by cppcheck.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b8ed493061)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-12-02 19:41:48 +01:00
..
arm
ppc
x86 swscale/x86/output: Fix yuv2planeX_16* with unaligned destination 2016-02-17 05:17:35 +01:00
alphablend.c swscale/alphablend: fix pointer cast 2015-08-22 20:11:48 +00:00
bayer_template.c
colorspace-test.c
gamma.c swscale: re-enable gamma 2015-09-04 19:00:20 -03:00
hscale_fast_bilinear.c
hscale.c swscale: add license headers and copyrights 2015-08-18 22:56:50 +02:00
input.c swscale/input: Fix GBRAP16 input 2016-02-24 00:04:17 +01:00
libswscale.v
log2_tab.c
Makefile swscale: re-enable gamma 2015-09-04 19:00:20 -03:00
options.c
output.c
rgb2rgb_template.c
rgb2rgb.c
rgb2rgb.h
slice.c swscale: fix ticket #4881 2015-10-13 20:11:42 +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
swscale-test.c libswcale: Fix possible string overflow in test. 2019-12-02 19:41:48 +01:00
swscale.c swscale/swscale: Add some sanity checks for srcSlice* parameters 2016-01-28 15:53:53 +01:00
swscale.h
swscaleres.rc
utils.c swscale/utils: Fix chrSrcHSubSample for GBRAP16 2016-02-24 00:04:51 +01:00
version.h
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: Factor YUVRGB_TABLE_LUMA_HEADROOM out 2016-01-15 12:30:40 +01:00