diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-16 22:21:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-16 23:37:26 +0100 |
commit | 2a983ff7fe076ae93926eb33cfb44ca49183dacc (patch) | |
tree | ae3ed920cd6dc6b0aa40fa17422ee4d5e0afb489 /libswscale | |
parent | be9ce6e10a8d53b8bc346c9337d75a5a30631a2a (diff) | |
download | ffmpeg-streaming-2a983ff7fe076ae93926eb33cfb44ca49183dacc.zip ffmpeg-streaming-2a983ff7fe076ae93926eb33cfb44ca49183dacc.tar.gz |
swscale: increase yuv2rgb table headroom
Fixes out of array access
Fixes: case2_bad_read_yuv2rgbx32.mp4
Found-by: Michal Zalewski <lcamtuf@coredump.cx>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 63b4eca..37c2b37 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -39,7 +39,7 @@ #define STR(s) AV_TOSTRING(s) // AV_STRINGIFY is too long -#define YUVRGB_TABLE_HEADROOM 128 +#define YUVRGB_TABLE_HEADROOM 256 #define MAX_FILTER_SIZE SWS_MAX_FILTER_SIZE |