4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-23 17:19:33 +08:00
Silviu Baranga efaef1bba2 Don't overread or write memory returned by _DTOA_R
Don't over-read memory returned by _DTOA_R, and never write to it
since the result might be a string literal.

For example, when doing:
  swprintf(tt, 20, L"%.*f", 6, 0.0);

we will get back "0".

Instead, write the result returned by _DTOA_R to the output buffer.
After this, write the 0 chars directly to the the output buffer
(if there are any). This also has the (marginal) advantage that
we read/write less memory overall.
2017-06-09 15:30:47 +02:00
..
2015-12-08 21:23:22 +01:00
2017-02-06 16:55:09 -05:00
2015-12-08 21:23:22 +01:00
2015-11-02 16:34:49 -05:00
2015-11-02 16:34:49 -05:00
2015-07-02 09:38:06 +02:00
2015-07-02 09:38:06 +02:00
2017-04-18 12:25:35 +02:00
2017-06-07 11:50:31 +02:00
2011-06-14 03:56:05 +00:00