aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-16 22:21:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-06-10 02:13:07 +0200
commit8b130c4aab8590a5ee08e72db46a63312832cc99 (patch)
treed2cfba2743c61e5258e0ddab3c5812cd6e099585 /libswscale
parent22f8dfafa86b48153492daa0259cec5441f1e5ac (diff)
downloadffmpeg-8b130c4aab8590a5ee08e72db46a63312832cc99.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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 2241ba5235..f4aea9d9bc 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 MAX_FILTER_SIZE 256