summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-08 15:28:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-08 15:28:09 +0000
commita7d3439bd1214fd20650366b5177cb87d787982d (patch)
treeccfc96c58294200e1dbb946a84619ad3978cf3f8 /roff.c
parentd0fd318699f4643ac39d3c0a9d6676fd495f5aaf (diff)
downloadmandoc-a7d3439bd1214fd20650366b5177cb87d787982d.tar.gz
fix an assertion failure triggered by .ce in next-line scope;
found by jsg@ with afl(1)
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/roff.c b/roff.c
index a5486cb3..7a4992bd 100644
--- a/roff.c
+++ b/roff.c
@@ -2934,7 +2934,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)) {