Merge branch 'CHERI' into jdw57_getIssueLd_simplify

This commit is contained in:
Jonathan Woodruff
2024-04-15 09:14:31 +01:00

View File

@@ -357,7 +357,7 @@ int main (int argc, char *argv [])
}
// Zero out the memory buffer before loading the ELF file
mem_buf = calloc(MAX_MEM_SIZE, sizeof(uint8_t));
mem_buf = (uint8_t *)(calloc(MAX_MEM_SIZE, sizeof(uint8_t)));
if (mem_buf == NULL) {
fprintf (stderr, "ERROR: unable to allocate %lxMB for mem_buf\n", MAX_MEM_SIZE / 1024 / 1024);
return 1;