diff options
author | Eric Blake <eblake@redhat.com> | 2010-08-30 12:08:47 -0600 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2013-09-17 20:38:53 +0700 |
commit | 37ea22baf81a4e3fc0896e3d6ac23d821ab1aa76 (patch) | |
tree | 4521cf5a3f90694dc38446bb27ac3f398f91b27c | |
parent | 20fed4bd1a58faf82c06ac9864db82a9dc74f0b4 (diff) | |
download | m4-37ea22baf81a4e3fc0896e3d6ac23d821ab1aa76.tar.gz |
maint: test bad format string crash.
* doc/m4.texi (Format): Add a test.
Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r-- | doc/m4.texi | 12 |
1 files changed, 12 insertions, 0 deletions
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 |