]> git.sesse.net Git - movit/commitdiff
Fix a stack overflow in EffectChainTest.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 21:33:01 +0000 (22:33 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 21:33:01 +0000 (22:33 +0100)
effect_chain_test.cpp

index 1b427a7dafbcffbecacbba007ec546341652f592..09a6df1b9608035160c868304cd6a2d3ac009284 100644 (file)
@@ -344,7 +344,7 @@ TEST(EffectChainTest, IdentityThroughAlphaConversions) {
                0.0f, 0.2f, 0.2f, 0.3f,
                0.1f, 0.0f, 1.0f, 1.0f,
        };
-       float out_data[6];
+       float out_data[4 * size];
        EffectChainTester tester(data, size, 1, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_LINEAR);
        tester.get_chain()->add_effect(new IdentityEffect());
        tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);