fix small allocation canary overwrite test

Overwriting one byte of a canary with 0 has a 1/256 chance of not
triggering the expected failure.
This commit is contained in:
Daniel Micay 2022-01-03 21:07:24 -05:00
parent 5f32942263
commit acda766e2c

View File

@ -7,7 +7,7 @@ OPTNONE int main(void) {
if (!p) {
return 1;
}
*(p + 8 + 7) = 0;
*(p + 8 + 7) ^= 1;
free(p);
return 0;
}