diff --git a/test/simple-memory-corruption/overflow_small_8_byte.c b/test/simple-memory-corruption/overflow_small_8_byte.c index 54c0de2..8b462a0 100644 --- a/test/simple-memory-corruption/overflow_small_8_byte.c +++ b/test/simple-memory-corruption/overflow_small_8_byte.c @@ -8,6 +8,7 @@ OPTNONE int main(void) { return 1; } size_t size = malloc_usable_size(p); + // XOR is used to avoid the test having a 1/256 chance to fail *(p + size + 7) ^= 1; free(p); return 0;