Commit Graph

13049 Commits

Author SHA1 Message Date
Elliott Hughes a7090b94c1 Remove yet more fixed-length buffers (and their overruns).
Bug: 20317724
Change-Id: If137fc96f5f23576ccecd388ac87afefa47337c6
2015-04-17 17:58:35 -07:00
Elliott Hughes cf3165bd97 am 3621ee6f: am 340e62f0: Merge "Fix comment typo."
* commit '3621ee6fdbca9ce405b20d4c9b94a7c444d13844':
  Fix comment typo.
2015-04-18 00:39:05 +00:00
Elliott Hughes 3621ee6fdb am 340e62f0: Merge "Fix comment typo."
* commit '340e62f05e27c7665641e68c5d0654e310e251fb':
  Fix comment typo.
2015-04-18 00:28:51 +00:00
Elliott Hughes 340e62f05e Merge "Fix comment typo." 2015-04-18 00:17:34 +00:00
Elliott Hughes 1daf86aa20 Fix comment typo.
Change-Id: I2d7082c44123e90d74b2669ab29d787b9aa64863
2015-04-17 17:08:16 -07:00
Elliott Hughes 54b3aa93ed am c0e6eebf: am 8d2abbea: Merge "Switch adb over to clang."
* commit 'c0e6eebfae9818201ed4ad0d4aa5487f85a978ab':
  Switch adb over to clang.
2015-04-17 23:04:19 +00:00
Elliott Hughes c0e6eebfae am 8d2abbea: Merge "Switch adb over to clang."
* commit '8d2abbea76f13b76ef814ff426d88f70526f6923':
  Switch adb over to clang.
2015-04-17 22:53:14 +00:00
Elliott Hughes cc51fab7e1 am a2fd3128: am 61a004c0: Merge "Fix more buffer overruns."
* commit 'a2fd312840821ff4dd1e03fe4350928989e8d6e5':
  Fix more buffer overruns.
2015-04-17 22:43:15 +00:00
Elliott Hughes 8d2abbea76 Merge "Switch adb over to clang." 2015-04-17 22:42:36 +00:00
Elliott Hughes a2fd312840 am 61a004c0: Merge "Fix more buffer overruns."
* commit '61a004c05f100741048d284fa527ac28c242d0bc':
  Fix more buffer overruns.
2015-04-17 22:30:41 +00:00
Elliott Hughes 2083fa6b01 Switch adb over to clang.
Change-Id: Ib5511dcba56e80ffce6bc293d99251ccfd61c330
2015-04-17 15:27:13 -07:00
Elliott Hughes 61a004c05f Merge "Fix more buffer overruns." 2015-04-17 22:24:27 +00:00
Elliott Hughes 5830577bd8 Fix more buffer overruns.
Also add some tests.

Bug: 20323050
Change-Id: I9eaf3dc04efd85206663c4cca4f8c1208620a89a
2015-04-17 15:23:31 -07:00
Elliott Hughes dcb0898c31 am 50ba7354: am adc4a8b8: Merge "Use PRI* macros to fix the Windows build."
* commit '50ba7354e0543c87b326d15822bca8b5e7f811dd':
  Use PRI* macros to fix the Windows build.
2015-04-17 21:32:53 +00:00
Elliott Hughes 50ba7354e0 am adc4a8b8: Merge "Use PRI* macros to fix the Windows build."
* commit 'adc4a8b8ce89d6ba2af3170b28ff652150e397e2':
  Use PRI* macros to fix the Windows build.
2015-04-17 21:20:58 +00:00
Elliott Hughes adc4a8b8ce Merge "Use PRI* macros to fix the Windows build." 2015-04-17 21:10:28 +00:00
Elliott Hughes 2940ccff86 Use PRI* macros to fix the Windows build.
Change-Id: Icd400be05c2bc726265832875b5a05dba7966847
2015-04-17 14:07:52 -07:00
Elliott Hughes a2bee3af6f am ace56f5c: am 3538b409: Merge "Remove various fixed-length buffers (and their overflows)."
* commit 'ace56f5c3baef804a45afb43cd23ec2a753231f3':
  Remove various fixed-length buffers (and their overflows).
2015-04-17 20:04:54 +00:00
Elliott Hughes ace56f5c3b am 3538b409: Merge "Remove various fixed-length buffers (and their overflows)."
* commit '3538b40942b65927e65b446bca9842a9f915c5e3':
  Remove various fixed-length buffers (and their overflows).
2015-04-17 19:53:02 +00:00
Elliott Hughes 3538b40942 Merge "Remove various fixed-length buffers (and their overflows)." 2015-04-17 19:42:29 +00:00
Elliott Hughes 2baae3a876 Remove various fixed-length buffers (and their overflows).
Bug: 20323052
Bug: 20323051
Bug: 20317728
Bug: 20317727
Bug: 20317726
Bug: 20317725
Change-Id: I57a5e30a5b7867715f55cee7429aa36d7ce21484
2015-04-17 10:59:34 -07:00
Elliott Hughes 4f9b6ec4b1 am ef995f83: am 0b8ecb32: Merge "Remove extern "C" barriers to using C++."
* commit 'ef995f832206c08e6e6374e0fa84698027c1f7b6':
  Remove extern "C" barriers to using C++.
2015-04-17 17:54:50 +00:00
Elliott Hughes 6652496798 am 3f82fef7: am 9a22039b: Merge "Show if authentication fails."
* commit '3f82fef75c4f45f8b23bef58ac67363e29de1c6e':
  Show $ADB_VENDOR_KEYS if authentication fails.
2015-04-17 17:47:13 +00:00
Elliott Hughes ef995f8322 am 0b8ecb32: Merge "Remove extern "C" barriers to using C++."
* commit '0b8ecb32908f0ccde550dd510f4a562239085806':
  Remove extern "C" barriers to using C++.
2015-04-17 17:43:58 +00:00
Elliott Hughes 3f82fef75c am 9a22039b: Merge "Show if authentication fails."
* commit '9a22039be8bbfd5772e40d6f37b7ecc3c5d93e47':
  Show $ADB_VENDOR_KEYS if authentication fails.
2015-04-17 17:32:33 +00:00
Elliott Hughes 0b8ecb3290 Merge "Remove extern "C" barriers to using C++." 2015-04-17 17:31:51 +00:00
Elliott Hughes 9a22039be8 Merge "Show $ADB_VENDOR_KEYS if authentication fails." 2015-04-17 17:23:44 +00:00
Elliott Hughes 2d4121c0dc Remove extern "C" barriers to using C++.
Change-Id: Ic046d6aa540738cb46b54531bc59ba3b47b0136d
2015-04-17 09:47:42 -07:00
Elliott Hughes 7be29c819b Show $ADB_VENDOR_KEYS if authentication fails.
Incorrectly set $ADB_VENDOR_KEYS is the most likely cause of failed
adb connections. Make it easier to debug such problems by including
the value in use in the error message.

Bug: 20165551
Change-Id: I64c1d98ae6d3fb40eea9e1f0ddcfcf4f2d9d7318
2015-04-16 22:54:44 -07:00
Dan Albert 2e7908b58c am 6e58f4a9: am a4802ca0: Merge "Move usb_osx to C++."
* commit '6e58f4a96b4e32a1b688b112b78e9372a965b393':
  Move usb_osx to C++.
2015-04-17 04:57:14 +00:00
Dan Albert 825bd39fd0 am 2c93697c: am c4f8fa7b: Merge "Link libraries needed for Darwin adb tests."
* commit '2c93697cfc5371afd11e486750fbabb734316ddc':
  Link libraries needed for Darwin adb tests.
2015-04-17 04:57:13 +00:00
Dan Albert 6e58f4a96b am a4802ca0: Merge "Move usb_osx to C++."
* commit 'a4802ca08bfcbf0124f5e9b959ed4e3a198d5f46':
  Move usb_osx to C++.
2015-04-17 04:46:49 +00:00
Dan Albert 2c93697cfc am c4f8fa7b: Merge "Link libraries needed for Darwin adb tests."
* commit 'c4f8fa7b36a8ba397f1c0ad3c7fb5a5c09520272':
  Link libraries needed for Darwin adb tests.
2015-04-17 04:46:48 +00:00
Dan Albert a4802ca08b Merge "Move usb_osx to C++." 2015-04-17 04:37:47 +00:00
Dan Albert c4f8fa7b36 Merge "Link libraries needed for Darwin adb tests." 2015-04-17 04:37:41 +00:00
Elliott Hughes b537368dfa am 38cb7caf: am d393e71f: Merge "Move sysdeps_win32 to C++."
* commit '38cb7caf33a1933af220b60f02c3fdda9c3b819f':
  Move sysdeps_win32 to C++.
2015-04-17 03:19:38 +00:00
Elliott Hughes 38cb7caf33 am d393e71f: Merge "Move sysdeps_win32 to C++."
* commit 'd393e71f397110ef182708596aaca870141c9978':
  Move sysdeps_win32 to C++.
2015-04-17 03:13:31 +00:00
Elliott Hughes d393e71f39 Merge "Move sysdeps_win32 to C++." 2015-04-17 03:04:43 +00:00
Elliott Hughes b96f2205b4 am 56a78ef2: am 2cba9405: Merge "[MIPS] Fast android_memset for Mips64, Mipsr6"
* commit '56a78ef26ed30d30a81766962b513179f841e1ae':
  [MIPS] Fast android_memset for Mips64, Mipsr6
2015-04-17 02:28:56 +00:00
Dan Albert 7447dd05bd Move usb_osx to C++.
Change-Id: I21673211a702cc4f31d4311c36e2a4b22e55fac8
2015-04-16 19:20:40 -07:00
Elliott Hughes 56a78ef26e am 2cba9405: Merge "[MIPS] Fast android_memset for Mips64, Mipsr6"
* commit '2cba9405f94f94a8fc50b351393b6e1d71d97712':
  [MIPS] Fast android_memset for Mips64, Mipsr6
2015-04-17 02:17:44 +00:00
Dan Albert f8d6b9b1ef Link libraries needed for Darwin adb tests.
Change-Id: I1c3c3a7bbd3824f5f3a37ee80c24d1c2a9b98748
2015-04-16 19:13:58 -07:00
Elliott Hughes 2cba9405f9 Merge "[MIPS] Fast android_memset for Mips64, Mipsr6" 2015-04-17 02:07:32 +00:00
Duane Sand 1ef9ccd772 [MIPS] Fast android_memset for Mips64, Mipsr6
Fix broken mips64 build by replacing mips32r2-only android_memset.S.
Use HW-bonded pairs of 64-bit stores to fill 128 bits/cycle.
Rely on HW automatic cache prefetch optimizations.
Software cache prefetching is counterproductive on next mips cores.
New method is coded in C, and also works okay on non-Mips architectures.

Change-Id: Id7153a8fe11538fe25287e101375661b0e99e2a2
2015-04-16 18:26:22 -07:00
Colin Cross 55bf5f0017 statically link adb and fastboot against libc++
libc++.so is not widely available on the host, so we compile against
one built as part of the platform.  This causes problems for adb and
fastboot, which are distributed through a number of channels - the
sdk, distro packages, downloaded from the build server, or manually
copied.  Instead of forcing all users to handle libc++.so too,
statically link against libc++.

Change-Id: I51b75258653a23558c8b598802005f6c1166a439
2015-04-16 17:09:46 -07:00
Elliott Hughes a2f2e56796 Move sysdeps_win32 to C++.
Change-Id: I27ca41b64d62bb3611b3a39a5c3bb4377d0773bc
2015-04-16 16:47:02 -07:00
Elliott Hughes 7b2104cf26 am 54de3e91: am 34d68c2b: Merge "Switch usb_linux_client to C++."
* commit '54de3e91df6553072c0d5f3192b73c1aad4220c8':
  Switch usb_linux_client to C++.
2015-04-16 22:02:00 +00:00
Elliott Hughes 54de3e91df am 34d68c2b: Merge "Switch usb_linux_client to C++."
* commit '34d68c2b574a21917d9e8d69a24ab863cc9f6910':
  Switch usb_linux_client to C++.
2015-04-16 21:50:57 +00:00
Greg Hackmann 4601fbb819 am ec682735: am 0e2d6015: Merge "Revert "cutils: add OS-independent endian.h""
* commit 'ec682735c5c2138642064a4966be11b5e478cd2b':
  Revert "cutils: add OS-independent endian.h"
2015-04-16 21:50:56 +00:00
Greg Hackmann ec682735c5 am 0e2d6015: Merge "Revert "cutils: add OS-independent endian.h""
* commit '0e2d6015bcd86f99b94dc13d8bfc996897f05b98':
  Revert "cutils: add OS-independent endian.h"
2015-04-16 21:39:44 +00:00