Don't let the modulo operator divide by zero.
authorschwarze <schwarze@openbsd.org>
Thu, 18 Dec 2014 17:43:07 +0000 (17:43 +0000)
committerschwarze <schwarze@openbsd.org>
Thu, 18 Dec 2014 17:43:07 +0000 (17:43 +0000)
commit4fcca957b9e3352fc6fcf2ff052fea22dc29f877
tree4466fec5d93e179ba6942cde7ed2cb36f6a8b89e
parent7f79ca7a9ccace59ee6d1b8047a1d38cca2d0585
Don't let the modulo operator divide by zero.
Found by jsg@ with afl.
regress/usr.bin/mandoc/roff/nr/divzero.in
regress/usr.bin/mandoc/roff/nr/divzero.out_ascii
regress/usr.bin/mandoc/roff/nr/divzero.out_lint
usr.bin/mandoc/roff.c