From 0f91aea7d238a025044263259bb77a7b15fbb099 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 7 Dec 2014 14:32:35 +0000 Subject: Add a test for redefining a macro name in the expansion of the macro with the same name. This often causes m4 to crash with malloc.conf F/Freeguard though not reliably. Crash found with the afl fuzzer. --- regress/usr.bin/m4/redef2.m4 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 regress/usr.bin/m4/redef2.m4 (limited to 'regress/usr.bin/m4/redef2.m4') diff --git a/regress/usr.bin/m4/redef2.m4 b/regress/usr.bin/m4/redef2.m4 new file mode 100644 index 00000000000..caff6cee224 --- /dev/null +++ b/regress/usr.bin/m4/redef2.m4 @@ -0,0 +1,6 @@ +dnl $OpenBSD: redef2.m4,v 1.1 2014/12/07 14:32:34 jsg Exp $ +dnl recursive macro redefinition +define(`A', `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') +A( + define(`A', `bbbbbbbbbbbbbbbbbbb') +) -- cgit v1.2.3