CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/05/01 14:53:58
Modified files:
usr.bin/mandoc : out.c
regress/usr.bin/mandoc/tbl/mod: Makefile
Added files:
regress/usr.bin/mandoc/tbl/mod: expand-toowide.in
expand-toowide.out_ascii
Log message:
When trying to expand some columns in a table where the sum of the
widths of the remaining columns is already wider than the line
length, underflowing size_t and dying from ENOMEM is the wrong plan.
Instead, simply refrain from expanding anything in such a situation,
avoiding a crash that tb@ found with afl.