Sergio Giro
01799f4381
Revert \\\\\\\\\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\\\\\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
am: 605de74373
am: 37826f5613
am: 80473d5d33
am: c06d338ad7
am: e059f5e325
am: 85d694cd0d
am: 9b169f8baf
...
am: fd900142f5
-s ours
Change-Id: Ib057bbfd06a34eaad78dfca4cb30847db2443353
2016-07-13 13:23:54 +00:00
Sergio Giro
fd900142f5
Revert \\\\\\\\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\\\\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
am: 605de74373
am: 37826f5613
am: 80473d5d33
am: c06d338ad7
am: e059f5e325
am: 85d694cd0d
...
am: 9b169f8baf
Change-Id: Iad77367b59a282acfb5649dfe2ef561515709d0e
2016-07-13 13:16:47 +00:00
Sergio Giro
9b169f8baf
Revert \\\\\\\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\\\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
am: 605de74373
am: 37826f5613
am: 80473d5d33
am: c06d338ad7
am: e059f5e325
...
am: 85d694cd0d
Change-Id: I83a0ee22957bd7f003196e138905264d6606c07e
2016-07-13 13:13:01 +00:00
Sergio Giro
85d694cd0d
Revert \\\\\\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
am: 605de74373
am: 37826f5613
am: 80473d5d33
am: c06d338ad7
...
am: e059f5e325
Change-Id: I5682a9b927fb31cb3d888b7f430d8ad62fcaeef3
2016-07-13 13:05:57 +00:00
Sergio Giro
e059f5e325
Revert \\\\\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
am: 605de74373
am: 37826f5613
am: 80473d5d33
...
am: c06d338ad7
Change-Id: I4ee28f7eb936464eeee476b9fedb19aa7fb96ac0
2016-07-13 13:01:47 +00:00
Sergio Giro
c06d338ad7
Revert \\\\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
am: 605de74373
am: 37826f5613
...
am: 80473d5d33
Change-Id: Ia5cb6e89924e69df568d633472656dd4b0c12a76
2016-07-13 12:58:09 +00:00
Sergio Giro
80473d5d33
Revert \\\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
am: 605de74373
...
am: 37826f5613
Change-Id: I3bc2854586879b2a7d7678516a99b7f767a3d4cb
2016-07-13 12:54:32 +00:00
Sergio Giro
37826f5613
Revert \\\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\\" am: 311002936e
am: ddd0051968
am: b218b2d34d
...
am: 605de74373
Change-Id: Ib58bd045e59fcfcf449b346861b5427d07fba9c6
2016-07-13 12:51:06 +00:00
Sergio Giro
605de74373
Revert \\\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\\" am: 311002936e
am: ddd0051968
...
am: b218b2d34d
Change-Id: Iced8e47993a39103aed3deafb5deb974995ecdba
2016-07-13 12:47:25 +00:00
Sergio Giro
b218b2d34d
Revert \\"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\\" am: 311002936e
...
am: ddd0051968
Change-Id: Ia2a422c170a0d700a1d4d55ea920361689a9be8b
2016-07-13 12:44:00 +00:00
Sergio Giro
ddd0051968
Revert \"libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8\"
...
am: 311002936e
Change-Id: Ic21d2414fb13c14feee56403324d31b0198e10e7
2016-07-13 12:40:29 +00:00
Sergio Giro
311002936e
Revert "libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8"
...
This reverts commit 53473c1607
.
Change-Id: I27379317e08ecbd5e3b95b7ece58194838ab6c21
2016-07-13 11:47:53 +00:00
Sergio Giro
b4c163b7b1
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
am: fd7bd2dfef
am: 498ffa62c5
am: 5e4ebd02d4
am: d837e74381
am: 6025b216e4
am: a73f7e5e81
am: 79a3c84cfe
...
am: 17cd63d00a
-s ours
Change-Id: I534bac8d62f0568471189cfc7b94afa37d00e560
2016-07-13 10:58:33 +00:00
Sergio Giro
17cd63d00a
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
am: fd7bd2dfef
am: 498ffa62c5
am: 5e4ebd02d4
am: d837e74381
am: 6025b216e4
am: a73f7e5e81
...
am: 79a3c84cfe
Change-Id: Iac2fca213ad042bdeb4812b35d7d3bb74044f71a
2016-07-13 10:06:42 +00:00
Sergio Giro
79a3c84cfe
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
am: fd7bd2dfef
am: 498ffa62c5
am: 5e4ebd02d4
am: d837e74381
am: 6025b216e4
...
am: a73f7e5e81
Change-Id: Ia2dcdfa5e373ba9bab53faf267650848370d4f93
2016-07-13 10:03:06 +00:00
Sergio Giro
a73f7e5e81
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
am: fd7bd2dfef
am: 498ffa62c5
am: 5e4ebd02d4
am: d837e74381
...
am: 6025b216e4
Change-Id: Ibf26d9f029f77f80623ac97633eb8cddbb77fe29
2016-07-13 09:59:32 +00:00
Sergio Giro
6025b216e4
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
am: fd7bd2dfef
am: 498ffa62c5
am: 5e4ebd02d4
...
am: d837e74381
Change-Id: Ie620548a78c92d2160db4395f00c6ec9f281e937
2016-07-13 09:55:54 +00:00
Sergio Giro
d837e74381
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
am: fd7bd2dfef
am: 498ffa62c5
...
am: 5e4ebd02d4
Change-Id: Ib2eb019edba21cd3ba3e22d745818d30c912ce62
2016-07-13 09:52:14 +00:00
Sergio Giro
5e4ebd02d4
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
am: fd7bd2dfef
...
am: 498ffa62c5
Change-Id: I470fe3b20bf5b1231146c488edc98336a7d60049
2016-07-13 09:48:32 +00:00
Sergio Giro
498ffa62c5
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
am: 29ccafe5f0
...
am: fd7bd2dfef
Change-Id: I24df8d8b13987ea0f99be6d4e9f49d52a1c4f58b
2016-07-13 09:44:52 +00:00
Sergio Giro
fd7bd2dfef
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
am: 41e6690d0c
...
am: 29ccafe5f0
Change-Id: If7c24750afcae3a4b73885b2c4fb9b99ffca5c45
2016-07-13 09:41:12 +00:00
Sergio Giro
29ccafe5f0
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 am: 53473c1607
...
am: 41e6690d0c
Change-Id: I0f7707c88684f9cc24fff878d3d3751b6025227f
2016-07-13 09:37:36 +00:00
Sergio Giro
41e6690d0c
libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8
...
am: 53473c1607
Change-Id: I04d6546b426dfbab278491d831f8b47ec077839f
2016-07-13 09:33:58 +00:00
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
Jeffrey Vander Stoep
34ae543dc3
Merge \\\\"add a property for controlling perf_event_paranoid\\\\" into mnc-dev am: 050243df76
am: f11efb251d
am: 2a311a9b38
...
am: 2d48c395cc
Change-Id: I678c109987a60bfc97b44ef4a48a4d658283ca66
2016-06-24 03:41:19 +00:00
Daniel Micay
2d48c395cc
Merge \\\"add a property for controlling perf_event_paranoid\\\" into mnc-dev am: 050243df76
am: f11efb251d
...
am: 2a311a9b38
Change-Id: I6ea7f744704405be67cf3cfa175b4142b5255e05
2016-06-23 21:10:41 +00:00
Jeffrey Vander Stoep
2a311a9b38
Merge \\"add a property for controlling perf_event_paranoid\\" into mnc-dev am: 050243df76
...
am: f11efb251d
Change-Id: I1c641d19b4badfc9fef73d1a11675777f6d653d5
2016-06-23 21:07:34 +00:00
Daniel Micay
f11efb251d
Merge \"add a property for controlling perf_event_paranoid\" into mnc-dev
...
am: 050243df76
Change-Id: Ifc1f319c5d81ed9f5735468d14d7a795b836f373
2016-06-23 21:04:57 +00:00
Jeffrey Vander Stoep
050243df76
Merge "add a property for controlling perf_event_paranoid" into mnc-dev
2016-06-23 21:00:04 +00:00
Josh Gao
42afe2033f
adb: don't dup local socket fd.
...
SIGHUP handling depends on the local socket fd being fully closed in
order to trigger an event on its counterpart. Release the local socket
fd inside of Subprocess when returning it to ensure this.
Bug: http://b/29565233
Change-Id: I13b17bcddf0b396a5f4880f9e410fbbf24d9370d
2016-06-22 15:57:12 -07:00
Josh Gao
2dff6490fd
DO NOT MERGE: adb: use asocket\\\\\\\\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours am: 45a4bca09d
-s ours am: fb9747c411
am: dc6e14f219
am: fdf3112207
-s ours am: d389f5d186
am: 57f5c95376
am: 755ab3ed16
...
am: 46104a0d79
-s ours
Change-Id: If33739a6317a8ad6f008960a5726dc6e2ce7c18c
2016-06-22 18:33:53 +00:00
Josh Gao
46104a0d79
DO NOT MERGE: adb: use asocket\\\\\\\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours am: 45a4bca09d
-s ours am: fb9747c411
am: dc6e14f219
am: fdf3112207
-s ours am: d389f5d186
am: 57f5c95376
...
am: 755ab3ed16
Change-Id: I43718396c291ac9cb261097f7a34cfa7c1fa3725
2016-06-22 18:31:11 +00:00
Josh Gao
755ab3ed16
DO NOT MERGE: adb: use asocket\\\\\\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours am: 45a4bca09d
-s ours am: fb9747c411
am: dc6e14f219
am: fdf3112207
-s ours am: d389f5d186
...
am: 57f5c95376
Change-Id: Ib68980c2897ba668691c76989375a5382bc8af3f
2016-06-22 18:26:13 +00:00
Josh Gao
2a9f4e1c50
DO NOT MERGE: adb: use asocket\\\\\\\\'s close function when closing. am: 83cb3032d2
-s ours am: 420aa30c9f
am: 05d5db2534
am: 8ec6f5b46f
-s ours am: f5592e174e
am: d99c745c31
am: 57b4b422e3
...
am: 96dea5690a
-s ours
Change-Id: Icef5dce2b992030b3cee1269e2e46992bd063537
2016-06-22 18:23:51 +00:00
Josh Gao
57f5c95376
DO NOT MERGE: adb: use asocket\\\\\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours am: 45a4bca09d
-s ours am: fb9747c411
am: dc6e14f219
am: fdf3112207
-s ours
...
am: d389f5d186
Change-Id: I5c106da4673571bc24e17742ab62960333507f77
2016-06-22 18:23:41 +00:00
Josh Gao
d389f5d186
DO NOT MERGE: adb: use asocket\\\\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours am: 45a4bca09d
-s ours am: fb9747c411
am: dc6e14f219
...
am: fdf3112207
-s ours
Change-Id: I42711a1a41b8099df1b769eb1c4e1fbbd2ee78bf
2016-06-22 18:21:33 +00:00
Josh Gao
96dea5690a
DO NOT MERGE: adb: use asocket\\\\\\\'s close function when closing. am: 83cb3032d2
-s ours am: 420aa30c9f
am: 05d5db2534
am: 8ec6f5b46f
-s ours am: f5592e174e
am: d99c745c31
...
am: 57b4b422e3
Change-Id: I14d98d1df800f6197c5eb28a45bd9fe259c844bf
2016-06-22 18:21:11 +00:00
Josh Gao
fdf3112207
DO NOT MERGE: adb: use asocket\\\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours am: 45a4bca09d
-s ours am: fb9747c411
...
am: dc6e14f219
Change-Id: Iac5c5b2bb07505cde1638f42d5e1ae6566a88c0b
2016-06-22 18:19:09 +00:00
Josh Gao
57b4b422e3
DO NOT MERGE: adb: use asocket\\\\\\'s close function when closing. am: 83cb3032d2
-s ours am: 420aa30c9f
am: 05d5db2534
am: 8ec6f5b46f
-s ours am: f5592e174e
...
am: d99c745c31
Change-Id: I1b615a3910580ae7f78b038b18b969c196fabe1e
2016-06-22 18:18:37 +00:00
Josh Gao
dc6e14f219
DO NOT MERGE: adb: use asocket\\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours am: 45a4bca09d
-s ours
...
am: fb9747c411
Change-Id: Ife4804a27b044aebaaefda6626adb61c241812af
2016-06-22 18:16:21 +00:00
Josh Gao
d99c745c31
DO NOT MERGE: adb: use asocket\\\\\'s close function when closing. am: 83cb3032d2
-s ours am: 420aa30c9f
am: 05d5db2534
am: 8ec6f5b46f
-s ours
...
am: f5592e174e
Change-Id: Ib220d4a778ea4e7bda44aafbbaa4911c243d7db7
2016-06-22 18:15:59 +00:00
Josh Gao
fb9747c411
DO NOT MERGE: adb: use asocket\\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
am: a3d96cfec9
-s ours
...
am: 45a4bca09d
-s ours
Change-Id: I2124ed25893de9910be435ba68619dfc00e66239
2016-06-22 18:11:44 +00:00
Josh Gao
f5592e174e
DO NOT MERGE: adb: use asocket\\\\'s close function when closing. am: 83cb3032d2
-s ours am: 420aa30c9f
am: 05d5db2534
...
am: 8ec6f5b46f
-s ours
Change-Id: If7256035b8844a6567080b5caf769a0a4f567d2f
2016-06-22 18:11:17 +00:00
Josh Gao
45a4bca09d
DO NOT MERGE: adb: use asocket\\\'s close function when closing. am: 5218ad36ad
am: d7e24ec999
...
am: a3d96cfec9
-s ours
Change-Id: I4ca0f2890519c3450a15edab989ca424b6bb10ae
2016-06-22 18:07:24 +00:00
Josh Gao
8ec6f5b46f
DO NOT MERGE: adb: use asocket\\\'s close function when closing. am: 83cb3032d2
-s ours am: 420aa30c9f
...
am: 05d5db2534
Change-Id: I433e885416a6cbf93bc701cfebc046f78a7af7dd
2016-06-22 18:07:06 +00:00
Josh Gao
a3d96cfec9
DO NOT MERGE: adb: use asocket\\'s close function when closing. am: 5218ad36ad
...
am: d7e24ec999
Change-Id: I9ca9e7e857de9e9679169cd7239f9e54a3d98dd2
2016-06-22 18:02:25 +00:00
Josh Gao
05d5db2534
DO NOT MERGE: adb: use asocket\\'s close function when closing. am: 83cb3032d2
-s ours
...
am: 420aa30c9f
Change-Id: I779b0b79ce268561f4a686d6e98c131707464ecf
2016-06-22 18:01:40 +00:00
Josh Gao
d7e24ec999
DO NOT MERGE: adb: use asocket\'s close function when closing.
...
am: 5218ad36ad
Change-Id: Ibc9ee3b566d34847f4e1e02413890449750ba2f5
2016-06-22 17:59:18 +00:00
Josh Gao
420aa30c9f
DO NOT MERGE: adb: use asocket\'s close function when closing.
...
am: 83cb3032d2
-s ours
Change-Id: I357c754fe2bc3fdf4f050c26aace2bea4c6569c2
2016-06-22 17:58:51 +00:00
Josh Gao
83cb3032d2
DO NOT MERGE: adb: use asocket's close function when closing.
...
close_all_sockets was assuming that all registered local sockets used
local_socket_close as their close function. However, this is not true
for JDWP sockets.
Backport of 53eb31d8
and 9b587de
.
Bug: http://b/28347842
Change-Id: I05e071b3d5c7e55c7a59400c5c9bb0635eeef29f
2016-06-21 16:28:29 -07:00