]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Mon, 14 Oct 2002 08:29:50 +0000 (08:29 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 14 Oct 2002 08:29:50 +0000 (08:29 +0000)
ChangeLog

index 89a2b6be965a23fc7fd9e3028cb9b177881e3379..799f460434d23b18760959f1593ee4495c28852c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,17 @@
 
        * Version 4.5.4.
 
+       Specifying a printf conversion specifer as nl's separator string
+       could cause nl to segfault.
+       * src/nl.c (build_print_fmt): Don't include separator string
+       in the printf format; it might contain `%'.
+       Use a better bound on the length of the print_fmt buffer.
+       (print_lineno): Print the separator here instead.
+       Reported by Doug Coleman.
+
+       * tests/misc/nl: New file/tests, including a test for the above.
+       * tests/misc/Makefile.am (TESTS): Add nl.
+
        * tests/misc/split-l: New test, to make sure `split --lines=N' works.
        * tests/misc/Makefile.am (TESTS): Add split-l.