diff --git a/test/simple-memory-corruption/eight_byte_overflow_large.c b/test/simple-memory-corruption/eight_byte_overflow_large.c index f7253d6..afb25b8 100644 --- a/test/simple-memory-corruption/eight_byte_overflow_large.c +++ b/test/simple-memory-corruption/eight_byte_overflow_large.c @@ -2,11 +2,11 @@ __attribute__((optimize(0))) int main(void) { - char *p = malloc(128 * 1024); + char *p = malloc(256 * 1024); if (!p) { return 1; } - *(p + 128 * 1024 + 7) = 0; + *(p + 256 * 1024 + 7) = 0; free(p); return 0; } diff --git a/test/simple-memory-corruption/test_smc.py b/test/simple-memory-corruption/test_smc.py index 84e9c3e..a1f3adc 100644 --- a/test/simple-memory-corruption/test_smc.py +++ b/test/simple-memory-corruption/test_smc.py @@ -51,7 +51,7 @@ class TestSimpleMemoryCorruption(unittest.TestCase): def test_eight_byte_overflow_large(self): _stdout, _stderr, returncode = self.run_test( "eight_byte_overflow_large") - self.assertEqual(returncode, 0) + self.assertEqual(returncode, -11) def test_eight_byte_overflow_small(self): _stdout, stderr, returncode = self.run_test(