Fix potential NULL-ptr dereference
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 5s

This commit is contained in:
Stephen Seo 2024-09-28 19:07:12 +09:00
parent 5afefb9496
commit a81ec4434a

View file

@ -1259,6 +1259,8 @@ int simple_archiver_parse_archive_info(FILE *in_f, int_fast8_t do_extract,
}
uc_heap_buf[u16 - 1] = 0;
fprintf(stderr, "Decompressor cmd: %s\n", uc_heap_buf);
decompressor_cmd = heap_buf;
heap_buf = NULL;
}
} else {
fprintf(stderr, "De/compressor flag is NOT set.\n");