mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
13 lines
209 B
C
13 lines
209 B
C
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "test_util.h"
|
|
|
|
OPTNONE int main(void) {
|
|
char *buffer = malloc(32);
|
|
if (!buffer) {
|
|
return 1;
|
|
}
|
|
memset(buffer, 'a', 16);
|
|
return 0;
|
|
}
|