aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-16 22:21:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-12 18:03:49 +0100
commit1d1cc267e6e7e846894fe58e5d63988ef4b77b8b (patch)
treef86f915ae8389c10750d2b1abe9015686c00030c
parent87ec3c615689e3d8bce36f1a168d908c7502b867 (diff)
downloadffmpeg-1d1cc267e6e7e846894fe58e5d63988ef4b77b8b.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 3def1b63e6..b2f844ff8c 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -34,7 +34,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