No description
Find a file
David 'Digit' Turner 833ea8d502 Fix an infinite loop in time2sub.
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.

Also remove some compiler warnings.

Note: a similar fix was performed in bionic/libc
2009-09-09 18:32:07 -07:00
adb Revert "adb: Another attempted workaround for the adb disconnect problem." 2009-09-03 16:35:42 -07:00
cpio auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
debuggerd auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fastboot fastboot: Add retry to USB read call. 2009-08-19 14:32:01 -04:00
include only use faster SHA-1 code on machines with good libc 2009-08-21 11:08:25 -07:00
init Merge changes 23694,23695,23696 into eclair 2009-09-02 21:40:39 -07:00
libacc Improve error message for unknown struct members 2009-09-04 15:34:21 -07:00
libctest Automated import from //branches/donutburger/...@140818,140818 2009-03-24 18:36:55 -07:00
libcutils Fix an infinite loop in time2sub. 2009-09-09 18:32:07 -07:00
liblog Route all log tags with "RIL" prefix to radio buffer. 2009-08-19 10:06:52 -07:00
libmincrypt only use faster SHA-1 code on machines with good libc 2009-08-21 11:08:25 -07:00
libnetutils libnetutils: Add ifc_enable(), for enabling a network interface. 2009-07-10 17:29:47 -04:00
libpixelflinger fix part of [2017702] OpenGL bugs with alpha values of 1.0 in the source during blending into 8888 buffers 2009-08-18 14:34:51 -07:00
libsysutils nexus: Rollup update for nexus 2009-07-10 14:23:51 -07:00
libzipfile fix decompression bug in fastboot 2009-06-16 17:36:04 -07:00
logcat Add contacts aggregation event to the log. 2009-09-03 16:13:08 -07:00
logwrapper Automated import from //branches/donutburger/...@140818,140818 2009-03-24 18:36:55 -07:00
mkbootimg fastboot, mkbootimg: support alternate base addresses 2009-04-28 16:05:07 -07:00
netcfg auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
nexus nexus: Rollup update for nexus 2009-07-10 14:23:51 -07:00
rootdir rootdir: init.rc: Allow all processes access to /data/dontpanic 2009-09-05 15:01:52 -07:00
sh auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
toolbox Added -s flag to ls. 2009-08-18 11:10:03 -07:00
vold vold: Format cards < 2GB as FAT16, otherwise FAT32. Also let the formatter 2009-08-28 09:18:46 -07:00
.gitignore Don't compile abort_socket.c for host targets. It is only intended to run on Linux targets. 2009-05-26 13:23:23 -07:00
Android.mk libsysutils: New C++ system convenience library 2009-05-06 15:12:02 -07:00
README auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00

The system/ directory is intended for pieces of the world that are the
core of the embedded linux platform at the heart of Android.  These
essential bits are required for basic booting, operation, and debugging.

They should not depend on libraries outside of system/... (some of them
do currently -- they need to be updated or changed) and they should not
be required for the simulator build.

The license for all these pieces should be clean (Apache2, BSD, or MIT).

Currently system/bluetooth/... and system/extra/... have some pieces
with GPL/LGPL licensed code.

Assorted Issues:

- pppd depends on libutils for logging
- pppd depends on libcrypt/libcrypto
- init, linker, debuggerd, toolbox, usbd depend on libcutils
- should probably rename bionic to libc