diff options
author | 2017-07-08 15:28:05 +0000 | |
---|---|---|
committer | 2017-07-08 15:28:05 +0000 | |
commit | 39dd362efbc4b945687fb9ee335bda16a4128ee1 (patch) | |
tree | c398eb63f8a0a38c612275d24bd3ec32bdbe5578 | |
parent | Always use strcasecmp() when comparing user input to option (diff) | |
download | wireguard-openbsd-39dd362efbc4b945687fb9ee335bda16a4128ee1.tar.xz wireguard-openbsd-39dd362efbc4b945687fb9ee335bda16a4128ee1.zip |
fix an assertion failure triggered by .ce in next-line scope;
found by jsg@ with afl(1)
-rw-r--r-- | usr.bin/mandoc/roff.c | 5 |
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)) { |