From 37ea22baf81a4e3fc0896e3d6ac23d821ab1aa76 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 30 Aug 2010 12:08:47 -0600 Subject: maint: test bad format string crash. * doc/m4.texi (Format): Add a test. Signed-off-by: Eric Blake --- doc/m4.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/m4.texi b/doc/m4.texi index 5a31eec8..bc2fccaf 100644 --- a/doc/m4.texi +++ b/doc/m4.texi @@ -7522,6 +7522,18 @@ format(`%.1f', `2a') @result{}2.0 @end example +@ignore +@comment Expose a crash with a bad format string fixed in 1.4.15. +@comment Unfortunately, 8-bit bytes are hard to check for; but the +@comment exit status is enough to sniff the crash in broken versions. + +@comment xerr: ignore +@example +format(`%'format(`%c', `128')) +@result{} +@end example +@end ignore + @node Arithmetic @chapter Macros for doing arithmetic -- cgit v1.2.1