Christopher Ferris
61833de613
Fix memchr with a zero length.
...
The memchr implementation for 64 bit fails if these conditions occur:
- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.
The function should return NULL, but it's not.
Bug: 16676625
(cherry picked from commit e03e1eac0b7682884b6628df1305d34299680cb4)
Change-Id: Ie4cca2c445127a0936ee2b96651a8e7204fbaffd
2014-07-30 16:33:11 -07:00
Elliott Hughes
aa1cbcb131
am 63b6416f: am 4f76469e: Implement <sys/fsuid.h>.
...
* commit '63b6416f339c70855e4bb44cd1c6fbb9a85a60fe':
Implement <sys/fsuid.h>.
2014-07-30 23:31:46 +00:00
Elliott Hughes
796d419f2e
am 897aca77: am 83b9826e: Merge "Implement <sys/fsuid.h>."
...
* commit '897aca77eeb9286574ddec58bb893df7c02a8912':
Implement <sys/fsuid.h>.
2014-07-30 23:31:46 +00:00
Elliott Hughes
63b6416f33
am 4f76469e: Implement <sys/fsuid.h>.
...
* commit '4f76469e88e255bab1f8264e9ff8b95bff84365f':
Implement <sys/fsuid.h>.
2014-07-30 23:27:43 +00:00
Elliott Hughes
897aca77ee
am 83b9826e: Merge "Implement <sys/fsuid.h>."
...
* commit '83b9826e683db30e9b359737253b87ef8b3ba3df':
Implement <sys/fsuid.h>.
2014-07-30 23:25:22 +00:00
Elliott Hughes
4f76469e88
Implement <sys/fsuid.h>.
...
(cherry picked from commit 79310994d2b3826a10598f7e7795acb5edb42a20)
Change-Id: I47688273691e5c95e5e9302eba254ccaaaad40ca
2014-07-30 16:18:03 -07:00
Duane Sand
5750c7cc49
am 66fa2c87: am cd541952: [MIPSR6] Use C-coded string ops on mips32r6/mips64r6
...
* commit '66fa2c87d6dea6c316a9984146c306011e3afb80':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:32:41 +00:00
Duane Sand
66fa2c87d6
am cd541952: [MIPSR6] Use C-coded string ops on mips32r6/mips64r6
...
* commit 'cd54195262ac5531fff892255849925ebbbd303e':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:28:55 +00:00
Elliott Hughes
8ead392b05
am abd28445: am c7706a02: Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
...
* commit 'abd284457884c4972a6dd72e2a2b647d935b1fe3':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:27:49 +00:00
Elliott Hughes
abd2844578
am c7706a02: Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
...
* commit 'c7706a02ad90ab73f3a056040d2c4a3464ab1ab1':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:21:57 +00:00
Duane Sand
cd54195262
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
...
The existing assembler code uses deprecated lwl/lwr/swl/swr ops.
Replacing those with misalignment-forgiving lw/sw ops may
involve careful performance tuning.
(cherry picked from commit bc5a3ec6df66d2456667ddf1d6dfaf623552169d)
Change-Id: I35167da27f2d406339b7f24b4a1fb270c87bc12e
2014-07-30 15:17:12 -07:00
Elliott Hughes
adc2a59383
am 84093b17: am 11bf8a30: Only wipe TLS for user-supplied stacks.
...
* commit '84093b174eb30f52414838d4a54847b19c621c93':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:10:49 +00:00
Elliott Hughes
84093b174e
am 11bf8a30: Only wipe TLS for user-supplied stacks.
...
* commit '11bf8a3025a7b5aee891c521255a7db1860e5b12':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:06:54 +00:00
Elliott Hughes
aed19ee769
am 594a5275: am 18a1bbe6: Merge "Only wipe TLS for user-supplied stacks."
...
* commit '594a5275188df203bb720afc2b2c898643fff6e3':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:06:45 +00:00
Elliott Hughes
594a527518
am 18a1bbe6: Merge "Only wipe TLS for user-supplied stacks."
...
* commit '18a1bbe6e18770694d489f2e140e779dc59fde86':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:02:31 +00:00
Elliott Hughes
11bf8a3025
Only wipe TLS for user-supplied stacks.
...
Bug: 16667988
(cherry picked from commit 40a521744825b6060960c296d5fb3da4c6593d94)
Change-Id: I7550fa47b76e643323aa3e2a53529e393c829e47
2014-07-30 14:56:34 -07:00
Christopher Ferris
0f7ed163cf
Merge "Fix memchr with a zero length."
2014-07-30 20:40:05 +00:00
Christopher Ferris
e03e1eac0b
Fix memchr with a zero length.
...
The memchr implementation for 64 bit fails if these conditions occur:
- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.
The function should return NULL, but it's not.
Bug: 16676625
Change-Id: Iab33cc7a8b79920350c72f054dff0e0a3cde69ce
2014-07-30 16:06:56 -07:00
Elliott Hughes
18a1bbe6e1
Merge "Only wipe TLS for user-supplied stacks."
2014-07-30 19:31:16 +00:00
Elliott Hughes
40a5217448
Only wipe TLS for user-supplied stacks.
...
Bug: 16667988
Change-Id: Id180ab2bc6713e1612386120a306db5bbf1d6046
2014-07-30 14:49:40 -07:00
Christopher Ferris
a6d698d914
am 0770ed06: am c701e5b3: Use libunwindbacktrace for debug malloc code.
...
* commit '0770ed068078786aa2e38ddc6eecbbf2a5fccef0':
Use libunwindbacktrace for debug malloc code.
2014-07-30 17:02:14 +00:00
Elliott Hughes
46975d966c
am a99a69a6: am 1242f7eb: Remove declarations for things that don\'t exist.
...
* commit 'a99a69a6400ed5078749656ee120fad1ad09ba97':
Remove declarations for things that don't exist.
2014-07-30 17:02:13 +00:00
Elliott Hughes
8fc6d6807f
am 4d17c6c3: am f6aa1779: Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev
...
* commit '4d17c6c39f8aeae13b177ed7a22be1895068830a':
Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."
2014-07-30 17:02:12 +00:00
Christopher Ferris
0770ed0680
am c701e5b3: Use libunwindbacktrace for debug malloc code.
...
* commit 'c701e5b3357b6484572d46f29c5d1e51063dfcbb':
Use libunwindbacktrace for debug malloc code.
2014-07-30 16:42:36 +00:00
Elliott Hughes
a99a69a640
am 1242f7eb: Remove declarations for things that don\'t exist.
...
* commit '1242f7eb67c678922b55e2077d9cf2d5cdc85b15':
Remove declarations for things that don't exist.
2014-07-30 16:41:43 +00:00
Elliott Hughes
4d17c6c39f
am f6aa1779: Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev
...
* commit 'f6aa17798c5b0015d002b982c3684595b817d2d0':
Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."
2014-07-30 16:41:43 +00:00
Dan Albert
f61f354583
am 5fce71b5: am e872c923: Merge "en_US.UTF-8 is also supported." into lmp-dev
...
* commit '5fce71b56e567a0e578e8ec8c1cab2bbc2e783ec':
en_US.UTF-8 is also supported.
2014-07-30 14:28:40 +00:00
Dan Albert
28124017d6
am d735a072: am 9379ce69: Merge "There is no _MIN for unsigned types." into lmp-dev
...
* commit 'd735a0723a185568997b443b338ccf7a171ab254':
There is no _MIN for unsigned types.
2014-07-30 14:28:39 +00:00
Dan Albert
fd4f86ccc2
am bb0c0531: am a1a813da: Merge "Fix mbsrtowcs(3)\'s handling of len parameter." into lmp-dev
...
* commit 'bb0c0531057018175a3e610501334f821973c67d':
Fix mbsrtowcs(3)'s handling of len parameter.
2014-07-30 14:28:39 +00:00
Dan Albert
d0e6c73aec
am ff20ad98: am 8db0ce70: Merge "__libc_fatal should print a newline to stderr." into lmp-dev
...
* commit 'ff20ad985ec54a72a2bc749cbd042373e8453116':
__libc_fatal should print a newline to stderr.
2014-07-30 14:28:38 +00:00
Dmitriy Ivanov
aed8b1ceff
am 2d361732: am 422106a2: Fix dlsym(3) to do breadth first search.
...
* commit '2d36173271512d9dd63a2193a8efc1d51f44d5fa':
Fix dlsym(3) to do breadth first search.
2014-07-30 14:28:37 +00:00
Dan Albert
5fce71b56e
am e872c923: Merge "en_US.UTF-8 is also supported." into lmp-dev
...
* commit 'e872c9239af180df6bf4b28a623241c6b1c7f1c3':
en_US.UTF-8 is also supported.
2014-07-30 14:15:47 +00:00
Dan Albert
d735a0723a
am 9379ce69: Merge "There is no _MIN for unsigned types." into lmp-dev
...
* commit '9379ce694d8a6bd70341eee003e23e96e21352e5':
There is no _MIN for unsigned types.
2014-07-30 14:15:46 +00:00
Dan Albert
bb0c053105
am a1a813da: Merge "Fix mbsrtowcs(3)\'s handling of len parameter." into lmp-dev
...
* commit 'a1a813da8184153606bfcf8ffcce557eda09a5ba':
Fix mbsrtowcs(3)'s handling of len parameter.
2014-07-30 14:15:46 +00:00
Dan Albert
ff20ad985e
am 8db0ce70: Merge "__libc_fatal should print a newline to stderr." into lmp-dev
...
* commit '8db0ce7050b0f6ee3874456394a1d7cb0d336c3a':
__libc_fatal should print a newline to stderr.
2014-07-30 14:15:45 +00:00
Dmitriy Ivanov
2d36173271
am 422106a2: Fix dlsym(3) to do breadth first search.
...
* commit '422106a24d620af4be58e8d92a2e9b7b6167b72d':
Fix dlsym(3) to do breadth first search.
2014-07-30 14:15:44 +00:00
Dan Albert
447fe1c23b
Merge "Fix mbsrtowcs(3) src param for finished string."
2014-07-30 11:26:00 +00:00
Dan Albert
b6cc8e00cd
Fix mbsrtowcs(3) src param for finished string.
...
A mistake I made while cleaning this up the first time through.
mbstrtowcs(3) sets the src param to null if it finishes the string.
Change-Id: I6263646e25d9537043b7025fd1dd6ae195f365e2
2014-07-31 11:31:03 -07:00
Christopher Ferris
c701e5b335
Use libunwindbacktrace for debug malloc code.
...
Create a method of disabling the debug allocation code paths so that
it's possible to use the libunwindbacktrace library without any
modifications.
Use this path to create and destroy the maps for the process. It's not
stricly necessary in the init code since the symbols are not modified
until after the initialize calls.
Also, remove the debug_XXX source files that doesn't need to be in libc.so.
Fix the maps reading code since it was completely broken for 64 bit.
Bug: 16408686
(cherry picked from commit 861c0ef37bcfcae56d88572cb01c18bcfe1faded)
Change-Id: I04445f0cf9a1e85172b64d57df92eb7939ce2332
2014-07-29 19:30:09 -07:00
Christopher Ferris
880ac3255a
am 4cc7dba9: am 4ad5066e: Merge "Use libunwindbacktrace for debug malloc code."
...
* commit '4cc7dba978de80fe8dfd0424a36719e37991cfbd':
Use libunwindbacktrace for debug malloc code.
2014-07-30 02:28:03 +00:00
Christopher Ferris
4cc7dba978
am 4ad5066e: Merge "Use libunwindbacktrace for debug malloc code."
...
* commit '4ad5066e1de326e5db46df18eeade9a88bc11bec':
Use libunwindbacktrace for debug malloc code.
2014-07-30 02:23:58 +00:00
Elliott Hughes
e0414f6f04
am eb0642a2: am 17886971: Merge "Remove declarations for things that don\'t exist."
...
* commit 'eb0642a2b98d052adf10d9079e51f23b5b49a45a':
Remove declarations for things that don't exist.
2014-07-30 01:23:39 +00:00
Elliott Hughes
eb0642a2b9
am 17886971: Merge "Remove declarations for things that don\'t exist."
...
* commit '17886971ffc758270bb3da3fecec86fa5b2bb3c3':
Remove declarations for things that don't exist.
2014-07-30 01:12:55 +00:00
Elliott Hughes
1242f7eb67
Remove declarations for things that don't exist.
...
The <grp.h> ones prevent gdb from building out of the box.
(cherry picked from commit f4c1a36a4500bc7f12e3065be3da4e8669ee011d)
Change-Id: I6958f2f1731de8c03df20b383decd414b78100aa
2014-07-29 17:48:01 -07:00
Dmitriy Ivanov
c7c4c60628
am 60abfd28: am 2b591b37: Merge "Fix dlsym(3) to do breadth first search."
...
* commit '60abfd28ca734e500e4a51ee46b2fd7fa3ce7b8d':
Fix dlsym(3) to do breadth first search.
2014-07-29 22:13:07 +00:00
Dmitriy Ivanov
60abfd28ca
am 2b591b37: Merge "Fix dlsym(3) to do breadth first search."
...
* commit '2b591b37420b4186bda7fa823b9058d4b19565f6':
Fix dlsym(3) to do breadth first search.
2014-07-29 22:09:23 +00:00
Dmitriy Ivanov
422106a24d
Fix dlsym(3) to do breadth first search.
...
dlsym(3) with handle != RTLD_DEFAULT|RTLD_NEXT performs
breadth first search through the dependency tree.
Bug: 16653281
(cherry picked from commit aa0f2bdbc22d4b7aec5d3f8f5f01eaeaa13414c2)
Change-Id: I0ba8c2034ab341f8a279cdb4e2e7e47f1aef7897
2014-07-29 15:02:15 -07:00
Elliott Hughes
c7706a02ad
Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
2014-07-29 21:36:05 +00:00
Dmitriy Ivanov
2b591b3742
Merge "Fix dlsym(3) to do breadth first search."
2014-07-29 21:36:05 +00:00
Elliott Hughes
f6aa17798c
Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev
2014-07-29 21:36:00 +00:00