diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2021-11-22 13:57:16 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2021-11-22 13:57:16 +0100 |
commit | 68faeef4be712df60443c6bb5764b1e9ddad20e2 (patch) | |
tree | 2a78e726d55dda813a9acb60b0b53b2847e20041 /winsup | |
parent | 1fda4aebd626c7f694bba5bc75adc39b625d1dad (diff) | |
download | newlib-68faeef4be712df60443c6bb5764b1e9ddad20e2.zip newlib-68faeef4be712df60443c6bb5764b1e9ddad20e2.tar.gz newlib-68faeef4be712df60443c6bb5764b1e9ddad20e2.tar.bz2 |
ldtoa: don't restrict outbuf size to ndigits
https://cygwin.com/pipermail/cygwin/2021-November/249930.html
reported a regression introduce by using a dynamically sized local
char array in favor of a statically sized array.
Fix this by reverting to a statically sized array, using a small
buffer on the stack for a reasonable number of requested digits, a
big mallocated buffer otherwise. This should work for small targets
as well, given that malloc is used in printf anyway right now.
This is *still* hopefully just a temporary measure, unless somebody
actually provides a new ldtoa.
Fixes: 4d90e53359145 ("ldtoa: fix dropping too many digits from output")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/release/3.3.3 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/release/3.3.3 b/winsup/cygwin/release/3.3.3 index a35c88b..908ebe4 100644 --- a/winsup/cygwin/release/3.3.3 +++ b/winsup/cygwin/release/3.3.3 @@ -34,3 +34,6 @@ Bug Fixes - Fix two bugs in raise(2). Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249973.html + +- Fix regression in printf introduced with Cygwin 3.3.2. + Addresses: https://cygwin.com/pipermail/cygwin/2021-November/249930.html |