Do not calculate a pointer to a memory location before the beginning of
authorschwarze <schwarze@openbsd.org>
Thu, 16 Aug 2018 15:04:45 +0000 (15:04 +0000)
committerschwarze <schwarze@openbsd.org>
Thu, 16 Aug 2018 15:04:45 +0000 (15:04 +0000)
commitb3f54129b83e153bde2b769c0f1d2e2e774cc153
treececccf7326feda1600848c0bdf53ebe90df92dbf
parentfd054bec0d768d88ed9030b4f5d8cc7092aba3d9
Do not calculate a pointer to a memory location before the beginning of
a static array.  Christos Zoulas, Robert Elz, and Andreas Gustafsson
point out that is undefined behaviour by the C standard even if we
never access the pointer.
usr.bin/mandoc/man_validate.c
usr.bin/mandoc/mdoc_validate.c