From d658eeb79a5ffd35fc6540ce94d855852e695411 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 19 Feb 2017 16:55:33 +0100 Subject: [PATCH] Fix a stack buffer overrun in ycbcr_input_test. --- ycbcr_input_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ycbcr_input_test.cpp b/ycbcr_input_test.cpp index 33ec74c..413ac15 100644 --- a/ycbcr_input_test.cpp +++ b/ycbcr_input_test.cpp @@ -1044,7 +1044,7 @@ TEST(EffectChainTest, MipmapGenerationWorks) { format.color_space = COLORSPACE_sRGB; format.gamma_curve = GAMMA_sRGB; - float out_data[width * height]; + float out_data[width * height * 4]; EffectChainTester tester(NULL, width, height); YCbCrInput *input = new YCbCrInput(format, ycbcr_format, width, height, YCBCR_INPUT_INTERLEAVED); input->set_pixel_data(0, ycbcr_data); -- 2.39.2