platform_system_core/libcutils
Adam Lesinski 9bd7afc0a1 Prevent integer overflow when allocating native_handle_t
User specified values of numInts and numFds can overflow
and cause malloc to allocate less than we expect, causing
heap corruption in subsequent operations on the allocation.

Bug: 19334482
Change-Id: I43c75f536ea4c08f14ca12ca6288660fd2d1ec55
2015-05-27 10:20:03 -07:00
..
arch-arm Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
arch-mips Add Mips memset speedup 2012-08-29 12:33:50 -07:00
arch-x86 Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
tests [MIPS] Benchmark test for MIPS memset16/memset32 2012-12-27 12:38:51 -08:00
Android.mk Fix Mac builds, for realz. 2013-09-20 18:00:15 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
android_reboot.c Make init handle reboots 2013-04-23 13:21:40 -07:00
ashmem-dev.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
ashmem-host.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
atomic.c Fail-proof the inline directives for SMP atomic operations. 2012-12-07 11:07:10 -08:00
config_utils.c Config utils improvement 2011-05-26 13:57:03 -07:00
cpu_info.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
debugger.c Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
dir_hash.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
dlmalloc_stubs.c Revert "Revert "Upgrade to dlmalloc 2.8.5."" 2012-08-28 15:52:20 -07:00
fs.c Fix Mac builds, for realz. 2013-09-20 18:00:15 -07:00
hashmap.c libcutils: hashmap: save next pointer in forEach before calling callback 2011-04-19 15:16:18 -07:00
iosched_policy.c cutils: schedpolicy: remove stray include 2010-02-26 11:45:27 -08:00
klog.c klog: error handling fixups 2013-04-22 11:07:14 -07:00
list.c init/cutils: move list utility code to cutils from init 2011-09-02 12:11:18 -07:00
load_file.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
loghack.h Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
memory.c Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
multiuser.c File-system utilities for installd and zygote. 2012-08-30 10:29:41 -07:00
native_handle.c Prevent integer overflow when allocating native_handle_t 2015-05-27 10:20:03 -07:00
open_memstream.c Try to fix Mac build. 2010-01-26 09:30:02 -08:00
partition_utils.c Crypto changes for devices that don't write ext4 fs on wipe 2011-05-26 19:42:32 -07:00
process_name.c libcutils: Don't build host property support 2013-05-23 11:04:54 -07:00
properties.c libcutils: reimplement property_list() using __system_property_foreach() 2013-06-18 16:37:54 -07:00
qtaguid.c Support full 32 bits for socket tags. 2012-05-02 16:01:31 -07:00
record_stream.c HACK: cutils: restore record_stream temporarily 2013-06-04 17:40:28 +00:00
sched_policy.c cutils: sched_policy: remove audio app/sys groups, merge into fg 2012-06-04 13:20:17 -07:00
socket_inaddr_any_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_network_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sockets.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
str_parms.c cutils: str_parms: when deleting entry, need to also remove key 2012-03-14 23:17:11 -07:00
strdup8to16.c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:37 -07:00
strdup16to8.c Fix a potential integer overflow bug that could result in memory overwrites. 2009-05-02 19:43:30 +02:00
threads.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
trace.c cutils: add a way to disable tracing for a process 2013-04-15 18:50:22 -07:00
uevent.c cutils: return the remote uid on netlink recv failure 2012-03-29 17:07:24 -07:00