android_system_core/include
Sergio Giro 53473c1607 libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8
Inconsistent behaviour between utf16_to_utf8 and utf16_to_utf8_length
is causing a heap overflow.

Correcting the length computation and adding bound checks to the
conversion functions.

(cherry picked from commit c4966a363e)
(changed code for safetynet logging due to lack of sstream and string in klp)

Change-Id: If50d59a91a13fddbff9a8fff0d3eebe57c711e93
Bug: 29250543
2016-07-12 18:39:11 +01:00
..
android Remove libjnigraphics. moved to frameworks/base/native 2010-02-04 15:32:07 -08:00
corkscrew Add flush_my_map_info_list() and fix a bug in the Mac load_map_info_list(). 2013-05-14 19:49:30 -07:00
ctest auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
cutils Remove mkdir() side effect, add .nomedia, utils. 2013-09-20 14:21:09 -07:00
diskconfig diskconfig: Add missing include for loff_t 2012-07-23 16:11:59 -07:00
ion Add explicit sync call to ion library 2012-09-20 09:46:19 -07:00
log Add macro to call event logger for errors. DO NOT MERGE 2015-11-10 22:33:10 +00:00
memtrack Moves libmemtrack header to standard location 2013-09-23 18:42:41 -07:00
mincrypt mincrypt: support SHA-256 hash algorithm 2013-04-10 14:33:31 -07:00
netutils libnetutils: Get mtu together with dhcp session results 2013-08-02 14:09:09 -07:00
pixelflinger pixelflinger: Fix function naming typo: gglBitBlti 2010-08-10 02:56:47 +08:00
private Richer SD card permissions through FUSE. 2013-08-08 17:26:41 -07:00
sync sync: factor sw_sync functionality out of header 2013-03-05 15:53:24 -08:00
system Fix rotation in camera2 API 2013-09-17 23:48:54 -07:00
sysutils Switch back to subsystem "net" for netlink events. 2013-09-03 00:25:14 +09:00
usbhost libusbhost: permits client polling on inotify wd 2012-12-10 11:12:35 +01:00
utils libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 2016-07-12 18:39:11 +01:00
zipfile auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00