aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include/stdio_ext.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2021-11-22 13:57:16 +0100
committerCorinna Vinschen <corinna@vinschen.de>2021-11-22 13:57:16 +0100
commit68faeef4be712df60443c6bb5764b1e9ddad20e2 (patch)
tree2a78e726d55dda813a9acb60b0b53b2847e20041 /newlib/libc/include/stdio_ext.h
parent1fda4aebd626c7f694bba5bc75adc39b625d1dad (diff)
downloadnewlib-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 'newlib/libc/include/stdio_ext.h')
0 files changed, 0 insertions, 0 deletions