Fix a buffer overflow in MixEffectTest.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 20 Mar 2014 22:48:46 +0000 (23:48 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Mar 2014 01:06:26 +0000 (02:06 +0100)
mix_effect_test.cpp

index 8432f1e..e3d66e7 100644 (file)
@@ -102,7 +102,7 @@ TEST(MixEffectTest, AdditiveBlendingWorksForBothTotallyOpaqueAndPartiallyTranslu
                1.0f, 1.0f, 1.0f, 0.7f,
        };
 
-       float out_data[4];
+       float out_data[8];
        EffectChainTester tester(data_a, 1, 2, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR);
        Effect *input1 = tester.get_chain()->last_added_effect();
        Effect *input2 = tester.add_input(data_b, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR);