Patch has been forwarded to upstream and merged:
https://github.com/BIC-MNI/minc-tools/pull/15
Please find attached a new version of the patch containing the
"Forwarded" tag with the above URL.
Cheers,
Martin
Description: Fix crash in mincconcat when header cannot be expanded
This patch fixes a segmentation fault that occurs when an input file
indicates compression (e.g. by having an extension ".bz2", ".gz",
etc.), but doesn't really contain data in the corresponding
compression format. In this case, exit with an error message instead
of just crashing.
Author: Martin Steghöfer <mar...@steghoefer.eu>
Bug-Debian: http://bugs.debian.org/716616
Forwarded: https://github.com/BIC-MNI/minc-tools/pull/15
--- a/progs/mincconcat/mincconcat.c
+++ b/progs/mincconcat/mincconcat.c
@@ -701,6 +701,10 @@
/* Expand the file header and open the file */
filename = miexpand_file(first_filename, NULL, TRUE, &created_tempfile);
+ if (!filename) {
+ fprintf(stderr, "Could not expand file \"%s\"!\n", first_filename);
+ exit(EXIT_FAILURE);
+ }
input_mincid = miopen(filename, NC_NOWRITE);
if (created_tempfile) {
(void) remove(filename);