After rewriting the parse buffer from scratch, we also have to reset
authorschwarze <schwarze@openbsd.org>
Wed, 1 Aug 2018 15:39:47 +0000 (15:39 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 1 Aug 2018 15:39:47 +0000 (15:39 +0000)
commitd036545502790e3a57d7219369aa50fe0c686589
tree8720b8553a68647133747482823058d96e780298
parenta577fa47f47726503c1c39ec6eb6c6abc64f3303
After rewriting the parse buffer from scratch, we also have to reset
the parse point to the beginning of the new buffer or we risk out
of bounds accesses.  Bug found by Leah Neukirchen <leah at vuxu dot
org> with valgrind on Void Linux.
usr.bin/mandoc/roff.c