]> git.sesse.net Git - movit/blobdiff - resample_effect_test.cpp
Fix a stack overflow in ResampleEffectTest.
[movit] / resample_effect_test.cpp
index 81fb8468c4efaaf997cbaeb0eb62051f7220be51..02d9d74d1102ace6a956331bac2280f8a368060f 100644 (file)
@@ -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) {