1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-18 03:19:31 +02:00
FFmpeg/libswscale
Stefano Sabatini bd2a3700c0 lsws: prevent overflow in sws_init_context()
In the loop:
    for (i=0; i<dstH; i++) {
        int chrI= i*c->chrDstH / dstH;

when i*c->chrDstH > INT_MAX this leads to an integer overflow, which
results in a negative value for chrI and in out-of-buffer reads. The
overflow is avoided by forcing int64_t arithmetic by casting i to
int64_t.

Fix crash, and trac issue #72.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
2011-04-25 22:45:19 +02:00
..
bfin Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
mlib Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
ppc swscale: correct include path to fix ppc altivec build 2011-04-15 00:41:10 +02:00
sparc Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
x86 Patch from Packman (OpenSuse - packages) to silence rpmlint. 2011-04-25 19:53:47 +02:00
colorspace-test.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
libswscale.v Add symbol versioning for shared libraries 2010-01-16 04:48:55 +00:00
Makefile swscale: move away x86 specific code from rgb2rgb 2011-04-14 22:16:47 +02:00
options.c Merge remote branch 'qatar/master' 2011-04-20 04:48:23 +02:00
rgb2rgb_template.c swscale: move away x86 specific code from rgb2rgb 2011-04-14 22:16:47 +02:00
rgb2rgb.c swscale: move away x86 specific code from rgb2rgb 2011-04-14 22:16:47 +02:00
rgb2rgb.h swscale: move away x86 specific code from rgb2rgb 2011-04-14 22:16:47 +02:00
swscale_internal.h Merge remote branch 'qatar/master' 2011-04-14 03:21:38 +02:00
swscale_template.c swscale: partially move the arch specific code left 2011-04-14 22:16:47 +02:00
swscale-test.c Replace FFmpeg with Libav in licence headers 2011-03-19 13:33:20 +00:00
swscale.c swscale: fix "ISO C90 forbids mixed declarations and code" warning 2011-04-15 10:06:53 +02:00
swscale.h Bump major versions of all libraries. 2011-04-18 20:19:47 +02:00
utils.c lsws: prevent overflow in sws_init_context() 2011-04-25 22:45:19 +02:00
yuv2rgb.c libswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation 2011-03-26 13:24:32 +11:00