]> git.cameronkatri.com Git - mandoc.git/commit
When we open a new .while loop, let's not attempt to close out
authorIngo Schwarze <schwarze@openbsd.org>
Sun, 24 Apr 2022 17:40:22 +0000 (17:40 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Sun, 24 Apr 2022 17:40:22 +0000 (17:40 +0000)
commit585346697024b5a41297196991bebef97f11a26a
treea55bd402508612748a111bed2f3d1e6a0640682a
parent3b18ea9139a1bdd9183db6f3ac6d174ad93b3cb3
When we open a new .while loop, let's not attempt to close out
another enclosing .while loop at the same time.
Instead, postpone the closing until the next iteration of ROFF_RERUN.

This prevents one-line constructions like ".while 0 .while 0 something"
and ".while rx .while rx .rr x" (which admittedly aren't particularly
useful) from dying of abort(3), which was a bug tb@ found with afl(1).
roff.c