comment explaining XOR for 8 byte overflow test
This commit is contained in:
parent
645414cc9f
commit
c50d06bc6a
@ -8,6 +8,7 @@ OPTNONE int main(void) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
size_t size = malloc_usable_size(p);
|
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;
|
*(p + size + 7) ^= 1;
|
||||||
free(p);
|
free(p);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user