]> git.cameronkatri.com Git - mandoc.git/commit
The syntax of the roff(7) .mc request is quite special
authorIngo Schwarze <schwarze@openbsd.org>
Thu, 28 Apr 2022 16:21:09 +0000 (16:21 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Thu, 28 Apr 2022 16:21:09 +0000 (16:21 +0000)
commitb3dd815817ebf3e3bb6e95b8e8b9cc6ed2c64ff8
treee720f598888796ac87c46979b54d4543ad1a3fad
parent4739b39372b31b9276373673e199b90e33fb70a8
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.
mandoc.1
mandoc.h
mandoc_msg.c
regress/roff/Makefile
regress/roff/mc/Makefile [new file with mode: 0644]
regress/roff/mc/args.in [new file with mode: 0644]
regress/roff/mc/args.out_ascii [new file with mode: 0644]
regress/roff/mc/args.out_lint [new file with mode: 0644]
roff.c