From c44da115063bfea7ef8b2afd1c9d52737e2b7f70 Mon Sep 17 00:00:00 2001 From: Niels Möller Date: Thu, 8 Dec 2016 09:48:50 +0000 Subject: 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 --- tests/misc/factor.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/misc') 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. -- cgit v1.2.3-54-g00ecf