]> granicus.if.org Git - graphviz/commit
exit when rectangle area computation overflows
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Jun 2022 21:42:07 +0000 (14:42 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Jun 2022 03:04:35 +0000 (20:04 -0700)
commit207860633265ae0d8673c72c4765872bca9a469e
treebc6c4816d418be1fb57566816f1bd28bffa7c287
parentcccb8b1d22a18031fc92d93133c7fa14ef7e1361
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