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-16 23:58:50 +0100
commitdce726f0914fa34523420e34faf2ef696ddcea1e (patch)
tree6bd9bd84c6df9ad32ca506ff34e9b7d27f54e032
parentea5b4c682caeb8beb2617a031211a89fbb1ad01a (diff)
downloadffmpeg-dce726f0914fa34523420e34faf2ef696ddcea1e.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 f6932943b8..bfd24c95a5 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