diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-16 22:21:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-21 04:40:35 +0100 |
commit | dc1cf5febb7faefa4b24e991eaf3a09447b2c878 (patch) | |
tree | b2c8decba4ae3c42baa470c312f2f5681fa86c62 | |
parent | 2c5898c1d303093adccb0e9b117c435ca878735f (diff) | |
download | ffmpeg-dc1cf5febb7faefa4b24e991eaf3a09447b2c878.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>
-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 6a942d6799..55911b532a 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -37,7 +37,7 @@ #define STR(s) AV_TOSTRING(s) // AV_STRINGIFY is too long -#define YUVRGB_TABLE_HEADROOM 128 +#define YUVRGB_TABLE_HEADROOM 256 #define FAST_BGR2YV12 // use 7-bit instead of 15-bit coefficients |