summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-07-08 15:28:06 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-07-08 15:28:06 +0000
commitdd8f08541cae545e0258ab1b83ea36f5dc5e4c8d (patch)
tree180c7ee37ee399bf17feea76936b94215e441bcc /usr.bin/mandoc
parent92d94de7caa33f9a5ae8bd646932421031be7594 (diff)
fix an assertion failure triggered by .ce in next-line scope;
found by jsg@ with afl(1)
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/roff.c5
1 files 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 <kristaps@bsd.lv>
* Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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)) {