Prevent unsigned integer underflow when a number is too wide
authorschwarze <schwarze@openbsd.org>
Wed, 24 Dec 2014 15:37:23 +0000 (15:37 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 24 Dec 2014 15:37:23 +0000 (15:37 +0000)
commitf2c51b35ab97b65737c2eb1581b62ac6373aae7b
tree1671e04ae621f8d8765e856e3c019ff411de612e
parentcea7389ce7367bb3a39faf9c6a6e335edda4fe0f
Prevent unsigned integer underflow when a number is too wide
for a table cell with an "nz" layout specification,
causing essentially infinite output as found by jsg@ with afl.
regress/usr.bin/mandoc/tbl/Makefile
regress/usr.bin/mandoc/tbl/misalign.in [new file with mode: 0644]
regress/usr.bin/mandoc/tbl/misalign.out_ascii [new file with mode: 0644]
usr.bin/mandoc/tbl_term.c