diff options
author | David A Ramos <daramos@gustav.stanford.edu> | 2010-07-27 13:10:15 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-07-27 13:12:35 +0200 |
commit | f6651fa449e1d4bbbb466b091f34e6752f6506f9 (patch) | |
tree | bcd0fae3cf82772f335a4351a2a4a6e1f8545e1f /libc/stdlib/valloc.c | |
parent | d4ede2b0a4727c1f5236dd9308f09cbf7a39761a (diff) | |
download | uClibc-alpine-f6651fa449e1d4bbbb466b091f34e6752f6506f9.tar.bz2 uClibc-alpine-f6651fa449e1d4bbbb466b091f34e6752f6506f9.tar.xz |
Fix ctime() standard compliance bug
fixes issue2209:
ctime() was updated in 0.9.31 to call localtime_r() instead of
localtime() to
avoid using a static buffer. Unfortunately, this change replaces the
static
buffer (which is zeroed out on initialization) with an uninitialized
local
buffer.
In the common case, this has no effect. However, with a sufficiently
large
time_t value, the value returned differs from that returned by
asctime(localtime(t)), and thus violates the ANSI/ISO standard.
An example input is (on a 64-bit machine):
time_t t = 0x7ffffffffff6c600;
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/stdlib/valloc.c')
0 files changed, 0 insertions, 0 deletions