aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-16 22:21:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-17 00:01:16 +0100
commitec0f77fbff904bb735c9923c3cdd916ca6ac9c88 (patch)
treea8c3921456db7e17d053a18fffd00991738d9a62
parent3aa99bed5df3f5da0e3b4d871eb197b028cf1f4d (diff)
downloadffmpeg-ec0f77fbff904bb735c9923c3cdd916ca6ac9c88.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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 83d3a0049c..fe5ae111ba 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