From 2a04fb86d5c4bcd418f055fec65c024b196328bd Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 13 Dec 2015 14:56:15 +0100 Subject: [PATCH] Fix a stack overflow in ResampleEffectTest. --- resample_effect_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resample_effect_test.cpp b/resample_effect_test.cpp index 81fb846..02d9d74 100644 --- a/resample_effect_test.cpp +++ b/resample_effect_test.cpp @@ -407,7 +407,7 @@ TEST(ResampleEffectTest, Precision) { // Deliberately put the data of interest very close to the right, // where texture coordinates are farther from 0 and thus less precise. - float data[size] = {0}; + float data[size * 2] = {0}; data[size - offset] = 1.0f; float expected_data[size * 2] = {0}; for (int x = 0; x < size * 2; ++x) { -- 2.39.2