Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix an infinite loop in time2sub. | David 'Digit' Turner | 2009-09-09 | 1 | -12/+47 |
| | | | | | | | | | | | | | | | | 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 | ||||
* | Fix strftime to use localized month names. | Eric Fischer | 2009-08-03 | 1 | -2/+2 |
| | | | | | | | It was using the default locale (capital L) instead of the current locale (lowercase l). Bug 2030864 | ||||
* | Add standalone_months field to libc strftime(). | Eric Fischer | 2009-05-15 | 1 | -4/+14 |
| | | | | | Replicate my change 722a5c0462f38827f4097065bfc3826b9e0e9fb4 into bionic in an attempt to fix the build. | ||||
* | auto import //branches/master/...@140412 | The Android Open Source Project | 2009-03-18 | 7 | -2781/+2714 |
| | |||||
* | auto import from //depot/cupcake/@135843 | The Android Open Source Project | 2009-03-03 | 7 | -0/+4185 |
| | |||||
* | auto import from //depot/cupcake/@135843 | The Android Open Source Project | 2009-03-03 | 7 | -4185/+0 |
| | |||||
* | Initial Contributionandroid-1.0 | The Android Open Source Project | 2008-10-21 | 7 | -0/+4185 |