MCPcopy Create free account
hub / github.com/coreboot/coreboot / xmalloc

Function xmalloc

util/smmstoretool/utils.c:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include <string.h>
17
18void *xmalloc(size_t size)
19{
20 void *p = malloc(size);
21 if (p == NULL) {
22 fprintf(stderr, "Failed to allocate memory\n");
23 abort();
24 }
25 return p;
26}
27
28char *to_chars(const CHAR16 uchars[], size_t size)
29{

Callers 6

to_charsFunction · 0.70
to_ucharsFunction · 0.70
make_dataFunction · 0.70
format_guidFunction · 0.70
vs_loadFunction · 0.70
vs_new_varFunction · 0.70

Calls 3

fprintfFunction · 0.85
mallocFunction · 0.50
abortFunction · 0.50

Tested by

no test coverage detected