From: Steinar H. Gunderson Date: Sun, 13 Dec 2015 13:56:15 +0000 (+0100) Subject: Fix a stack overflow in ResampleEffectTest. X-Git-Tag: 1.3.0~14 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=2a04fb86d5c4bcd418f055fec65c024b196328bd Fix a stack overflow in ResampleEffectTest. --- 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) {