diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-12-07 14:32:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-12-07 14:32:35 +0000 |
commit | 0f91aea7d238a025044263259bb77a7b15fbb099 (patch) | |
tree | 5a47bf0879a39db8b98af23f7d170a36ed20f434 /regress/usr.bin/m4/redef2.m4 | |
parent | 906361195dae243136901fdff47328b5d3ff9408 (diff) |
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.
Diffstat (limited to 'regress/usr.bin/m4/redef2.m4')
-rw-r--r-- | regress/usr.bin/m4/redef2.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
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') +) |