From 207860633265ae0d8673c72c4765872bca9a469e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 19 Jun 2022 14:42:07 -0700 Subject: [PATCH] exit when rectangle area computation overflows Continuing in the face of an overflow when calculating rectangle area was sort of pointless. The test case for #1906 is an example of this, that runs for many minutes _repeatedly_ detecting overflows in this code before finally erroring out when trying to do follow on layout with values that make no sense. It is simpler and cheaper to just error out immediately when this happens. Gitlab: #1906 --- lib/label/rectangle.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/label/rectangle.c b/lib/label/rectangle.c index d8c35c482..952eaa959 100644 --- a/lib/label/rectangle.c +++ b/lib/label/rectangle.c @@ -11,14 +11,15 @@ #include "config.h" #include