Skip to content

Commit

Permalink
wrudf-cdr.c: Exit on allocation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
i386x committed Jun 15, 2021
1 parent dc409c4 commit b08c75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrudf/wrudf-cdr.c
Expand Up @@ -26,7 +26,7 @@ uint32_t newVATentry() {
sizeVAT += 2048;
vat = realloc(vat, sizeVAT);
if( vat == NULL )
printf("VAT reallocation failed\n");
fail("VAT reallocation failed\n");
}
/* could go through VAT and try to find unused 0xFFFFFFFF entry rather than alloc new one at the end */
vat[newVATindex] = getNWA() - pd->partitionStartingLocation;
Expand Down

0 comments on commit b08c75d

Please sign in to comment.