From: Steinar H. Gunderson Date: Fri, 25 Sep 2015 23:29:40 +0000 (+0200) Subject: Fix a buffer overflow in ycbcr_conversion_effect_test. X-Git-Tag: 1.3.0~43 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=5307e8adafcb1fda2579793730a00b6b978fd701 Fix a buffer overflow in ycbcr_conversion_effect_test. --- diff --git a/ycbcr_conversion_effect_test.cpp b/ycbcr_conversion_effect_test.cpp index d2b5d5c..aada42c 100644 --- a/ycbcr_conversion_effect_test.cpp +++ b/ycbcr_conversion_effect_test.cpp @@ -268,7 +268,7 @@ TEST(YCbCrConversionEffectTest, SplitLumaAndChroma) { 240, 110, /*undefined:*/ 110, /*undefined:*/ 255, }; - unsigned char out_y[width * height], out_cbcr[width * height * 4]; + unsigned char out_y[width * height * 4], out_cbcr[width * height * 4]; EffectChainTester tester(NULL, width, height);