Commit graph

16586 commits

Author SHA1 Message Date
Dimitry Ivanov
b2fd768656 Merge "libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM"
am: 6e30ca516b

* commit '6e30ca516bbf1d209d827306c495b2a205540c5a':
  libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM
2016-03-02 21:34:03 +00:00
Dimitry Ivanov
6e30ca516b Merge "libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM" 2016-03-02 21:04:31 +00:00
Elliott Hughes
784609317d Mandate optimized __memset_chk for arm and arm64.
This involves actually implementing assembler __memset_chk for arm64,
but that's easily done.

Obviously I'd like this for all architectures (and all the string functions),
but this is low-hanging fruit...

Change-Id: I70ec48c91aafd1f0feb974a2555c51611de9ef82
2016-03-02 11:58:41 -08:00
Dimitry Ivanov
7264f571a7 Merge "Do not add linker the _r_debug.r_map on link_image"
am: ca75a3e3e7

* commit 'ca75a3e3e7574e66e09632b1692b3c144ba2b4f4':
  Do not add linker the _r_debug.r_map on link_image
2016-03-02 19:53:12 +00:00
Dimitry Ivanov
ca75a3e3e7 Merge "Do not add linker the _r_debug.r_map on link_image" 2016-03-02 19:49:25 +00:00
Dimitry Ivanov
98cdef39dc libdl: Rename LIBC_PRIVATE to LIBC_PLATFORM
Bug: http://b/26386014
Change-Id: I3255faac66a96867aed302e205e3644b40ce7750
2016-03-02 11:41:22 -08:00
Elliott Hughes
61050edbfd Merge "Improve diagnostics from the assembler __memcpy_chk routines."
am: 2332d52439

* commit '2332d524396aa69c55969cf6e48a5048f12d53ea':
  Improve diagnostics from the assembler __memcpy_chk routines.
2016-03-02 19:21:33 +00:00
Elliott Hughes
2332d52439 Merge "Improve diagnostics from the assembler __memcpy_chk routines." 2016-03-02 19:13:03 +00:00
Dimitry Ivanov
e97d8ed70e Do not add linker the _r_debug.r_map on link_image
Change-Id: Idd0fb06a5d9f400c0608ae532cc4c575211810fa
2016-03-02 11:09:18 -08:00
Elliott Hughes
869dfdc6be Merge "Fix getifaddrs\' handling of point-to-point interfaces."
am: c5fa374ee9

* commit 'c5fa374ee92e3aedd15daf450e1a8bb5179e7a6a':
  Fix getifaddrs' handling of point-to-point interfaces.
2016-03-02 16:30:41 +00:00
Elliott Hughes
c5fa374ee9 Merge "Fix getifaddrs' handling of point-to-point interfaces." 2016-03-02 16:06:13 +00:00
Elliott Hughes
ef925e50d3 Fix getifaddrs' handling of point-to-point interfaces.
Also remove an if that implied that IFA_BROADCAST is a possibility for
AF_INET6.

The existing tests fail if you have a point-to-point interface configured,
so no new test necessary.

Bug: http://b/27442503
Change-Id: I4c5823b32204ae6c15527853414c2a0cef320b53
2016-03-01 20:05:59 -08:00
Dimitry Ivanov
e80bd8c884 Merge "linker: print "not accessible" error message to the log"
am: a3be5bfded

* commit 'a3be5bfdede8ae6c88bb06d6fa6bf8192ea3268e':
  linker: print "not accessible" error message to the log
2016-03-01 23:33:31 +00:00
Dimitry Ivanov
a3be5bfded Merge "linker: print "not accessible" error message to the log" 2016-03-01 23:29:59 +00:00
Dimitry Ivanov
d17a377c49 linker: print "not accessible" error message to the log
Print properties of the namespace on "library is not accessible"
error to better diagnose problems with native library accessiblity

Bug: http://b/27406143
Change-Id: Icf3d6c604f09dfa015de863fdb1267d343930d2a
(cherry picked from commit 350bdad61c)
2016-03-01 15:28:43 -08:00
Elliott Hughes
3c6016f04a Improve diagnostics from the assembler __memcpy_chk routines.
Change-Id: Iec16c92ed80beee505cba2121ea33e3550197b02
2016-03-01 14:45:58 -08:00
Elliott Hughes
2ed0e35c3b Merge "Improve diagnostics from the assembler __memset_chk routines."
am: c199690b5f

* commit 'c199690b5ffda0f4df50d1121f7ab577af1fe468':
  Improve diagnostics from the assembler __memset_chk routines.
2016-03-01 21:28:16 +00:00
Elliott Hughes
c199690b5f Merge "Improve diagnostics from the assembler __memset_chk routines." 2016-03-01 21:25:06 +00:00
Elliott Hughes
62e59646f8 Improve diagnostics from the assembler __memset_chk routines.
Change-Id: Ic165043ab8cd5e16866b3e11cfba960514cbdc57
2016-03-01 12:46:47 -08:00
Lazar Trsic
3bb5ea60a0 Merge "Update libgcc_compat.c file for mips32 arch"
am: 4fedc4154d

* commit '4fedc4154d09149d2376bd69ef2ad0e771466517':
  Update libgcc_compat.c file for mips32 arch
2016-03-01 19:38:24 +00:00
Dimitry Ivanov
4fedc4154d Merge "Update libgcc_compat.c file for mips32 arch" 2016-03-01 19:35:35 +00:00
Lazar Trsic
375a915c37 Update libgcc_compat.c file for mips32 arch
Contains complete list of libgcc references.

Change-Id: If6b8000dcefa72036a025ebbe59f51e93fe57e98
2016-03-01 15:22:17 +01:00
Pierre Imai
b908f71f72 Merge "Copy the entire zero-separated DNS seach domain string."
am: 2de7983470

* commit '2de7983470a04e3037a8993553c3b9533b985952':
  Copy the entire zero-separated DNS seach domain string.
2016-03-01 08:15:39 +00:00
Pierre Imai
2de7983470 Merge "Copy the entire zero-separated DNS seach domain string." 2016-03-01 08:15:03 +00:00
Elliott Hughes
686a2beaee Merge "Rewrite ifaddrs#getifaddrs_INET."
am: 27900405c6

* commit '27900405c66c53e3a45637661f89ff3c8cf69ec5':
  Rewrite ifaddrs#getifaddrs_INET.
2016-03-01 03:22:16 +00:00
Elliott Hughes
27900405c6 Merge "Rewrite ifaddrs#getifaddrs_INET." 2016-03-01 03:21:35 +00:00
Elliott Hughes
bf97770a86 Rewrite ifaddrs#getifaddrs_INET.
The old implementation was unnecessarily complex, and using the wrong ioctl
for point-to-point destination addresses.

Bug: http://b/27313259
Change-Id: I9cabd17e414ce42b115037a3f828d79843f604f9
2016-02-29 17:58:54 -08:00
Christopher Ferris
787e3f6136 Merge "Move hard-coded values to constants."
am: 6fa50a292e

* commit '6fa50a292e541d9be846f03cff52c0ae95781fb2':
  Move hard-coded values to constants.
2016-02-29 19:23:45 +00:00
Christopher Ferris
6fa50a292e Merge "Move hard-coded values to constants." 2016-02-29 19:22:59 +00:00
Dan Willemsen
85884137d9 Merge "Update Android.bp with recent Android.mk changes"
am: bb3add2125

* commit 'bb3add2125ce4ace0ba053e3c9bb2a8bf3840f47':
  Update Android.bp with recent Android.mk changes
2016-02-29 19:10:03 +00:00
Dan Willemsen
bb3add2125 Merge "Update Android.bp with recent Android.mk changes" 2016-02-29 19:06:48 +00:00
Dan Willemsen
879cec2770 Update Android.bp with recent Android.mk changes
Change-Id: If9777e9ece6de1bc00c3ef86724c7bd4d437aaca
2016-02-29 10:37:56 -08:00
Pierre Imai
0967fc7e59 Copy the entire zero-separated DNS seach domain string.
The DNS search string contains zeros as domain separator. The resolver
code erroneously used strlcpy(), which resulted in only the first domain
to be copied. The code uses pointers into this string to access the
individual domains. Since the structure is zero-initialized, this bug only
resulted in zero-length domains instead of accessing unitialized memory.

BUG: 27312811
Change-Id: Ia9d066c405dfcc5e82d6766d93ead2ce574e7b0d
2016-02-29 16:50:38 +09:00
Elliott Hughes
849551dc28 Merge "Create logging sockets with SOCK_NONBLOCK..."
am: 17866357c5

* commit '17866357c5437d1b43b9f4b7411e48d9c9c38bec':
  Create logging sockets with SOCK_NONBLOCK...
2016-02-28 15:55:39 +00:00
Elliott Hughes
17866357c5 Merge "Create logging sockets with SOCK_NONBLOCK..." 2016-02-28 15:54:44 +00:00
Elliott Hughes
0f67d5ffa4 Create logging sockets with SOCK_NONBLOCK...
...rather than calling fcntl on them directly after creation.

Bug: https://code.google.com/p/android/issues/detail?id=201440
Change-Id: Ia3941b7645455d69620b1a361902df009b5da2c5
2016-02-27 19:18:41 -08:00
Elliott Hughes
255ef494f7 Merge "Improve FORTIFY failure diagnostics."
am: 31adf6cd38

* commit '31adf6cd3846030f0d7397fa5f3cc285d8c79533':
  Improve FORTIFY failure diagnostics.
2016-02-28 00:31:16 +00:00
Elliott Hughes
31adf6cd38 Merge "Improve FORTIFY failure diagnostics." 2016-02-28 00:30:31 +00:00
Elliott Hughes
b83d6747fa Improve FORTIFY failure diagnostics.
Our FORTIFY _chk functions' implementations were very repetitive and verbose
but not very helpful. We'd also screwed up and put the SSIZE_MAX checks where
they would never fire unless you actually had a buffer as large as half your
address space, which probably doesn't happen very often.

Factor out the duplication and take the opportunity to actually show details
like how big the overrun buffer was, or by how much it was overrun.

Also remove the obsolete FORTIFY event logging.

Also remove the unused __libc_fatal_no_abort.

This change doesn't improve the diagnostics from the optimized assembler
implementations.

Change-Id: I176a90701395404d50975b547a00bd2c654e1252
2016-02-26 22:06:17 -08:00
Christopher Ferris
549e52200b Move hard-coded values to constants.
Change all of the hard-coded config values to be defined constants.
Also make sure to use these constants in the usage output.

Bug: 26739265
Change-Id: I597a6d71279a2df9cc7e98c42ac70224261bac99
2016-02-26 17:02:17 -08:00
Neil Fuller
812506301d Merge "Update timezone data to 2016a"
am: eb727252f2

* commit 'eb727252f22bd533ebfd40637c0718fdc9946221':
  Update timezone data to 2016a
2016-02-26 11:25:05 +00:00
Neil Fuller
eb727252f2 Merge "Update timezone data to 2016a" 2016-02-26 11:23:28 +00:00
Elliott Hughes
74e096efc5 Merge "If you\'re going to use memset..."
am: a8f05fcc64

* commit 'a8f05fcc64c6484051112882a087fba533f14322':
  If you're going to use memset...
2016-02-26 06:07:46 +00:00
Elliott Hughes
a8f05fcc64 Merge "If you're going to use memset..." 2016-02-26 06:06:11 +00:00
Elliott Hughes
f86c4494ff If you're going to use memset...
...you'd better #include <string.h>.

Change-Id: I83e0877f4151fc764588e2d876e66d7712d41f61
2016-02-25 22:05:28 -08:00
Elliott Hughes
30fbacba13 Merge "GCC doesn\'t like {}, and clang doesn\'t like {0}..."
am: a8e75ba37d

* commit 'a8e75ba37deff962b0ddbc2fb81b96c3515ae7e5':
  GCC doesn't like {}, and clang doesn't like {0}...
2016-02-26 05:55:34 +00:00
Elliott Hughes
a8e75ba37d Merge "GCC doesn't like {}, and clang doesn't like {0}..." 2016-02-26 05:53:59 +00:00
Elliott Hughes
2c6c95348c GCC doesn't like {}, and clang doesn't like {0}...
...so memset it is, then.

I'll be glad when GCC is dead and we can use "= {}" like it's the 21st century.

Change-Id: I28d820d3926ac9bf44bf7c1e89e184726c840391
2016-02-25 21:51:50 -08:00
Anton Kirilov
2e3f5e72a6 Merge "Fix a structure initialisation in pthread_exit()."
am: d07d77e399

* commit 'd07d77e399ee26291125bedbe46d03e037e705f2':
  Fix a structure initialisation in pthread_exit().
2016-02-26 05:02:16 +00:00
Elliott Hughes
d07d77e399 Merge "Fix a structure initialisation in pthread_exit()." 2016-02-26 04:59:51 +00:00