mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
1999-06-24 Ulrich Drepper <drepper@cygnus.com> * misc/tst-efgcvt.c (ecvt_tests): Test 92.0 with ndigits == 16. * misc/efgcvt_r.c (ecvt_r): Limit ndigits before passing it to fcvt_r.
This commit is contained in:
@ -191,8 +191,8 @@ APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign, buf, len)
|
||||
*sign = isfinite (value) ? signbit (value) != 0 : 0;
|
||||
}
|
||||
else
|
||||
if (APPEND (FUNC_PREFIX, fcvt_r) (value, ndigit - 1, decpt, sign,
|
||||
buf, len))
|
||||
if (APPEND (FUNC_PREFIX, fcvt_r) (value, MIN (ndigit, NDIGIT_MAX) - 1,
|
||||
decpt, sign, buf, len))
|
||||
return -1;
|
||||
|
||||
*decpt += exponent;
|
||||
|
Reference in New Issue
Block a user