CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2022/04/28 10:16:46
Modified files:
regress/usr.bin/mandoc/roff: Makefile
usr.bin/mandoc : mandoc.1 mandoc.h mandoc_msg.c roff.c
Added files:
regress/usr.bin/mandoc/roff/mc: Makefile args.in args.out_ascii
args.out_lint
Log message:
The syntax of the roff(7) .mc request is quite special
and the roff_onearg() parsing function is too generic,
so provide a dedicated parsing function instead.
This fixes an assertion failure when an \o escape sequence is
passed as the argument; the bug was found by tb@ using afl(1).
It also makes mandoc output more similar to groff in various cases.