From: Eric Blake Date: 2010年8月30日 18:08:47 +0000 (-0600) Subject: maint: test bad format string crash. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=37ea22baf81a4e3fc0896e3d6ac23d821ab1aa76;p=m4.git maint: test bad format string crash. * doc/m4.texi (Format): Add a test. Signed-off-by: Eric Blake --- 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

AltStyle によって変換されたページ (->オリジナル) /