]> git.sesse.net Git - movit/commitdiff
Fix a buffer overflow in ycbcr_conversion_effect_test.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 25 Sep 2015 23:29:40 +0000 (01:29 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 25 Sep 2015 23:29:40 +0000 (01:29 +0200)
ycbcr_conversion_effect_test.cpp

index d2b5d5c620a906ae17cfad3d47a4f2f299840235..aada42cc50fe206f05ddbd083b8dcb2abc83c8f9 100644 (file)
@@ -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);