Please allow m4 1.4.8-2 in testing
Using 1.4.8-1:
$ m4 -- file-which-does-not-exist
Segmentation fault
Using 1.4.8-2:
$ m4 -- file-which-does-not-exist
m4: file-which-does-not-exist: No such file or directory
The fix is one line, and upstream confirms it's correct.
This is the complete diff between 1.4.8-1 and 1.4.8-2:
diff -ru m4-1.4.8.orig/debian/changelog m4-1.4.8/debian/changelog
--- m4-1.4.8.orig/debian/changelog 2007-01-09 14:06:38.000000000 +0100
+++ m4-1.4.8/debian/changelog 2007-01-09 14:05:45.000000000 +0100
@@ -1,3 +1,10 @@
+m4 (1.4.8-2) unstable; urgency=medium
+
+ * Fixed command line parsing bug which produced a segfault. Closes: #405594.
+ Thanks to Sami Liedes for the report and the patch.
+
+ -- Santiago Vila <sanvila@debian.org> Fri, 5 Jan 2007 11:05:48 +0100
+
m4 (1.4.8-1) unstable; urgency=low
* New upstream release. Lots of fixes, see the NEWS file for details.
diff -ru m4-1.4.8.orig/src/m4.c m4-1.4.8/src/m4.c
--- m4-1.4.8.orig/src/m4.c 2006-11-20 14:55:47.000000000 +0100
+++ m4-1.4.8/src/m4.c 2007-01-09 14:05:45.000000000 +0100
@@ -551,7 +551,7 @@
read_stdin = process_file ("-");
else
for (; optind < argc; optind++)
- if (process_file (defines->arg))
+ if (process_file (argv[optind]))
read_stdin = true;
/* Now handle wrapup text. */
Thanks.
Reply to: