Avoid a read access one byte beyond the end of an allocated string
authorschwarze <schwarze@openbsd.org>
Wed, 1 Aug 2018 13:44:15 +0000 (13:44 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 1 Aug 2018 13:44:15 +0000 (13:44 +0000)
commit00e80a2ae7780e0c7683cf6d339d3229e9d2c3e7
treec9906e60f6ff9a9dc88191a6d0e911bd953b15d0
parentaab43efd6887fdbf85bb85af3a1f6e9265ce2073
Avoid a read access one byte beyond the end of an allocated string
which occurred in situations like ".Fl a Cm --"; found by
Leah Neukirchen <leah at vuxu dot org> with valgrind on Void Linux.
usr.bin/mandoc/mdoc_validate.c