mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 08:51:14 -04:00
initial commit
This commit is contained in:
commit
70d61b6662
12 changed files with 1086 additions and 0 deletions
12
util.c
Normal file
12
util.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
COLD noreturn void fatal_error(const char *s) {
|
||||
write(STDERR_FILENO, s, strlen(s));
|
||||
write(STDERR_FILENO, "\n", 1);
|
||||
abort();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue