mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-18 12:24:27 -05:00
Fix two warnings
This commit is contained in:
parent
001eb0687b
commit
052b756840
@ -2,6 +2,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "../test_util.h"
|
||||
#include "../../util.h"
|
||||
|
||||
OPTNONE int main(void) {
|
||||
char *p = malloc(256 * 1024);
|
||||
@ -9,7 +10,7 @@ OPTNONE int main(void) {
|
||||
return 1;
|
||||
}
|
||||
free(p);
|
||||
char *q = malloc(256 * 1024);
|
||||
UNUSED char *q = malloc(256 * 1024);
|
||||
p[64 * 1024 + 1] = 'a';
|
||||
return 0;
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "../test_util.h"
|
||||
#include "../../util.h"
|
||||
|
||||
OPTNONE int main(void) {
|
||||
char *p = malloc(128);
|
||||
@ -9,7 +10,7 @@ OPTNONE int main(void) {
|
||||
return 1;
|
||||
}
|
||||
free(p);
|
||||
char *q = malloc(128);
|
||||
UNUSED char *q = malloc(128);
|
||||
|
||||
p[65] = 'a';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user