summaryrefslogtreecommitdiff
path: root/libutils/ProcessCallStack.cpp
diff options
context:
space:
mode:
authorDavid Pursell <dpursell@google.com>2016-09-21 12:08:37 -0700
committerDavid Pursell <dpursell@google.com>2016-09-21 13:00:32 -0700
commit73d55aaab23256f85941730444e82cbc41a63f8b (patch)
treedc1654f3b1a196a7f618a32d749638ac4f56ea92 /libutils/ProcessCallStack.cpp
parent91811d2d34551d48ed8774c284852a099fd43b51 (diff)
adb: fix host-side serial number parsing for IPv6.
When the adb client sends a command to the adb server targeting a particular device serial, it looks something like this: host-serial:<serial>:<command> But if <serial> happens to be an IPv6 address (e.g. when `adb connect` targets IPv6), the current parsing code doesn't handle the additional colons properly. This CL fixes the host-serial parsing to handle this case. This only affects commands that explicitly name a device serial, e.g.: adb -s <IPv6> shell adb -s <IPv6> forward <port> <port> Implicitly using a single attached device was unaffected by this bug. Bug: http://b/30891386 Test: `adb -s [fe80::ba27:ebff:feb1:934%eth2]:5555 shell` works now, and new unittests pass. Change-Id: Iffe784e61432ae94eb96ed3c8477900a3e807329
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions