| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
* commit 'ac56f5ca2f4c54ddbd37b033f9465d89542c2cbe':
strftime: Use snprintf() instead of sprintf()
|
| |
| |
| |
| |
| | |
Change-Id: I112ac012894eddc96e5f3e77cb87bb300596e3ce
Signed-off-by: Jim Huang <jserv@0xlab.org>
|
|/
|
|
| |
Change-Id: I03e72b0253a7a2e015455ab81dbf155ed1e574d2
|
|
|
|
|
|
|
| |
Add timegm(), timelocal(), time2posix() and posix2time() to the
C library.
Change-Id: I34d5771ed83dd994870a5ca58a511d01898b1ffb
|
|
|
|
|
|
|
|
| |
Also add missing declarations to misc. functions.
Fix clearerr() implementation (previous was broken).
Handle feature test macros like _POSIX_C_SOURCE properly.
Change-Id: Icdc973a6b9d550a166fc2545f727ea837fe800c4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The problem is that time_t is signed, and the original code relied on the
fact that (X + c < X) in case of overflow for c >= 0. Unfortunately, this
condition is only guaranteed by the standard for unsigned arithmetic, and
the gcc 4.4.0 optimizer did completely remove the corresponding test from
the code. This resulted in a missing boundary check, and an infinite loop.
The problem is solved by testing explicitely for TIME_T_MIN and TIME_T_MAX
in the loop that uses this.
Also fix increment_overflow and long_increment_overflow which were buggy
for exactly the same reasons.
Note: a similar fix is needed for system/core/libcutils
|
|
|
|
|
|
|
| |
It was using the default locale (capital L) instead of the
current locale (lowercase l).
Bug 2030864
|
|
|
|
|
| |
Replicate my change 722a5c0462f38827f4097065bfc3826b9e0e9fb4 into
bionic in an attempt to fix the build.
|
| |
|
| |
|
| |
|
|
|