From 38d74f57ceebdb79b1c6741f2e60b9515f8d67be Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 31 Jul 2009 23:05:20 +0000 Subject: [PATCH] - Import gdtoa fix from NetBSD: * Change Kmax so we allocate enough freelist entries to handle large field numbers. Reported by Maksymilian Arciemowicz (See also http://securityreason.com/achievement_securityalert/63) SVN r1740 (trunk) --- gdtoa/gdtoaimp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdtoa/gdtoaimp.h b/gdtoa/gdtoaimp.h index ac4b59e57..69ae8765f 100644 --- a/gdtoa/gdtoaimp.h +++ b/gdtoa/gdtoaimp.h @@ -481,7 +481,7 @@ extern double rnd_prod(double, double), rnd_quot(double, double); #define FREE_DTOA_LOCK(n) /*nothing*/ #endif -#define Kmax 15 +#define Kmax (sizeof(size_t) << 3) struct Bigint {