FFmpeg/libswscale
Ronald S. Bultje ce99c1bfb5 swscale: enforce a minimum filtersize.
At very small dimensions, this calculation could lead to zero-sized
filters, which leads to uninitialized output, zero-sized allocations,
loop overflows in SIMD that uses do{..}while(i++<filtersize); instead
of for(i=0;i<filtersize;i++){..} and several other similar failures.
Therefore, require a minimum filtersize of 1.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit dae2ce361a)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2012-04-01 18:33:26 +02:00
..
bfin sws: replace all long with int. 2011-05-28 10:03:37 -04:00
mlib Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
ppc ppc: fix some pointer to integer casts 2011-09-26 19:31:32 +02:00
sparc Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
x86 swscale: fix crash in fast_bilinear code when compiled with -mred-zone. 2012-01-10 21:00:09 +01:00
colorspace-test.c sws: replace all long with int. 2011-05-28 10:03:37 -04:00
libswscale.v Add symbol versioning for shared libraries 2010-01-16 04:48:55 +00:00
Makefile swscale: split swscale.c in unscaled and generic conversion routines. 2011-06-03 09:52:09 -07:00
options.c swscale: force --enable-runtime-cpudetect and remove SWS_CPU_CAPS_*. 2011-05-24 10:03:26 -04:00
rgb2rgb.c sws: replace all long with int. 2011-05-28 10:03:37 -04:00
rgb2rgb.h sws: replace all long with int. 2011-05-28 10:03:37 -04:00
rgb2rgb_template.c swscale: Remove disabled code. 2011-05-29 14:32:08 +02:00
swscale-test.c swscale: Remove commented-out printf cruft. 2011-05-26 03:45:58 +02:00
swscale.c swscale: remove misplaced comment. 2011-06-14 16:55:24 -04:00
swscale.h doxygen: Remove spurious documentation for non-existing function parameters. 2011-07-03 19:58:33 +02:00
swscale_internal.h swscale: fix JPEG-range YUV scaling artifacts. 2011-06-14 09:46:49 -04:00
swscale_unscaled.c swscale: split swscale.c in unscaled and generic conversion routines. 2011-06-03 09:52:09 -07:00
utils.c swscale: enforce a minimum filtersize. 2012-04-01 18:33:26 +02:00
yuv2rgb.c swscale: Remove disabled code. 2011-05-29 14:32:08 +02:00