From 69dd502a67e421fe48f76ba10e1a259c9969b747 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 1 May 2017 20:54:59 +0000 Subject: 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. --- regress/tbl/mod/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regress/tbl/mod/Makefile') diff --git a/regress/tbl/mod/Makefile b/regress/tbl/mod/Makefile index c5bebb0f..04eec17e 100644 --- a/regress/tbl/mod/Makefile +++ b/regress/tbl/mod/Makefile @@ -1,6 +1,6 @@ # $OpenBSD: Makefile,v 1.2 2015/02/10 11:02:19 schwarze Exp $ -REGRESS_TARGETS = badfont expand font misalign +REGRESS_TARGETS = badfont expand expand-toowide font misalign LINT_TARGETS = badfont font # groff-1.22.3 defects: -- cgit v1.2.3-56-ge451