This diff checks the allocations if a few pretty big tables.
-Otto Index: main.c =================================================================== RCS file: /home/cvs/src/sbin/dump/main.c,v diff -u -p -r1.63 main.c --- main.c 2 Jun 2022 15:35:55 -0000 1.63 +++ main.c 17 Dec 2023 20:30:45 -0000 @@ -465,6 +465,9 @@ main(int argc, char *argv[]) usedinomap = calloc((unsigned) mapsize, sizeof(char)); dumpdirmap = calloc((unsigned) mapsize, sizeof(char)); dumpinomap = calloc((unsigned) mapsize, sizeof(char)); + if (usedinomap == NULL || dumpdirmap == NULL || dumpinomap == NULL) + quit("Failed to allocate tables"); + tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); nonodump = spcl.c_level < honorlevel;