From 39dd362efbc4b945687fb9ee335bda16a4128ee1 Mon Sep 17 00:00:00 2001 From: schwarze Date: Sat, 8 Jul 2017 15:28:05 +0000 Subject: [PATCH] fix an assertion failure triggered by .ce in next-line scope; found by jsg@ with afl(1) --- usr.bin/mandoc/roff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c index a645b02b464..67016b3c992 100644 --- a/usr.bin/mandoc/roff.c +++ b/usr.bin/mandoc/roff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: roff.c,v 1.191 2017/07/08 14:51:01 schwarze Exp $ */ +/* $OpenBSD: roff.c,v 1.192 2017/07/08 15:28:05 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017 Ingo Schwarze @@ -2932,7 +2932,8 @@ roff_onearg(ROFF_ARGS) int npos; if (r->man->flags & (MAN_BLINE | MAN_ELINE) && - (tok == ROFF_sp || tok == ROFF_ti)) + (tok == ROFF_ce || tok == ROFF_rj || tok == ROFF_sp || + tok == ROFF_ti)) man_breakscope(r->man, tok); if (roffce_node != NULL && (tok == ROFF_ce || tok == ROFF_rj)) { -- 2.20.1