From 38564fb72f1972ec44f0dd16e2ae4802adc9d3c9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 4 Jul 2021 15:38:26 +0000 Subject: The mandoc(1) manual already mentions that -T man output mode neither supports tbl(7) nor eqn(7) input. If an input file contains such code anyway, tell the user rather than failing an assert(3)ion. Fixing a crash reported by Bjarni Ingi Gislason in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901636 which the Debian maintainer of mandoc, Michael at Stapelberg dot ch, forwarded to me. --- mandoc_msg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mandoc_msg.c') diff --git a/mandoc_msg.c b/mandoc_msg.c index 64355ddc..8867bb4b 100644 --- a/mandoc_msg.c +++ b/mandoc_msg.c @@ -1,6 +1,6 @@ /* $OpenBSD: mandoc_msg.c,v 1.8 2020/01/19 17:59:01 schwarze Exp $ */ /* - * Copyright (c) 2014-2020 Ingo Schwarze + * Copyright (c) 2014-2021 Ingo Schwarze * Copyright (c) 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any @@ -245,6 +245,8 @@ static const char *const type_message[MANDOCERR_MAX] = { "eqn delim option in tbl", "unsupported tbl layout modifier", "ignoring macro in table", + "skipping tbl in -Tman mode", + "skipping eqn in -Tman mode", /* bad command line arguments */ NULL, -- cgit v1.2.3