summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2016-12-08 09:48:50 +0000
committerPádraig Brady <P@draigBrady.com>2016-12-08 10:10:34 +0000
commitc44da115063bfea7ef8b2afd1c9d52737e2b7f70 (patch)
treec90c88e701c97f5272917e60a553cbcd0c40956f /tests
parent11c1b73c1b386a098e5e18af864591541b63d7bf (diff)
downloadcoreutils-c44da115063bfea7ef8b2afd1c9d52737e2b7f70.tar.xz
factor: fix infinite loop in gcd2_odd
* src/factor.c (gcd2_odd): Fix the case a1 == 0, a0 == 0. * NEWS: Mention the bug fix. Fixes http://bugs.gnu.org/25135
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/factor.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/factor.pl b/tests/misc/factor.pl
index 4c2975366..e37df9d61 100755
--- a/tests/misc/factor.pl
+++ b/tests/misc/factor.pl
@@ -73,6 +73,11 @@ my @Tests =
['bug-2012-c', '6635692801', {OUT => '57601 115201'}],
['bug-2012-d', '17709149503', {OUT => '94099 188197'}],
['bug-2012-e', '17754345703', {OUT => '94219 188437'}],
+ # Infinite loop bugs in v8.20 to 8.26 inclusive
+ ['bug-2016-a', '158909489063877810457',
+ {OUT => '3401347 3861211 12099721'}],
+ ['bug-2016-b', '222087527029934481871',
+ {OUT => '15601 26449 111427 4830277'}],
);
# If we have GMP support, append tests to exercise it.