From: Steinar H. Gunderson Date: Mon, 21 Jan 2013 21:33:01 +0000 (+0100) Subject: Fix a stack overflow in EffectChainTest. X-Git-Tag: 1.0~149^2~5 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=e236aa5ff69ca2344ecd29ec774f5d6b16c7b7b4 Fix a stack overflow in EffectChainTest. --- diff --git a/effect_chain_test.cpp b/effect_chain_test.cpp index 1b427a7..09a6df1 100644 --- a/effect_chain_test.cpp +++ b/effect_chain_test.cpp @@ -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);