From b3dd815817ebf3e3bb6e95b8e8b9cc6ed2c64ff8 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 28 Apr 2022 16:21:09 +0000 Subject: 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_msg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mandoc_msg.c') diff --git a/mandoc_msg.c b/mandoc_msg.c index 0361fc80..80a49d1d 100644 --- a/mandoc_msg.c +++ b/mandoc_msg.c @@ -166,6 +166,7 @@ static const char *const type_message[MANDOCERR_MAX] = { "invalid Boolean argument", "argument contains two font escapes", "unknown font, skipping request", + "ignoring distance argument", "odd number of characters in request", /* related to plain text */ @@ -222,6 +223,7 @@ static const char *const type_message[MANDOCERR_MAX] = { "missing list type, using -item", "argument is not numeric, using 1", "argument is not a character", + "skipping unusable escape sequence", "missing manual name, using \"\"", "uname(3) system call failed, using UNKNOWN", "unknown standard specifier", -- cgit v1.2.3