Make the testsuite work for read-after-free

This commit makes the testsuite fail if
the read-after-free tests are failing, instead
of simply printing some info.
pull/166/head
jvoisin 2022-01-02 13:39:42 +01:00 committed by Daniel Micay
parent 2d56c1de01
commit ffdf7b1ee1
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@ OPTNONE int main(void) {
free(p);
for (size_t i = 0; i < 128 * 1024; i++) {
printf("%x\n", p[i]);
if (p[i] != '\0') {
return 1;
}
}
return 0;
}

View File

@ -13,6 +13,9 @@ OPTNONE int main(void) {
free(p);
for (size_t i = 0; i < 16; i++) {
printf("%x\n", p[i]);
if (p[i] != '\0') {
return 1;
}
}
return 0;
}