android_system_core/adb
Mayank Rana 71a33cfa67 adbd: Fix check against valid payload size
block->payload and its size are not valid when it is used to check
against bytes_left due to std::move() performed on its just prior
to the check. Hence check will always fail to detect the case where
received data is more than expected. To detect this condition and
allow error handling with std::move(), remove extra payload variable
and directly use block->payload.

Bug: http://b/168917244
Change-Id: I992bbba9d9a9861a195834f69d62e69b90658210
2020-09-18 19:26:45 +00:00
..
apex Add min_sdk_version:R to updatable apexes 2020-04-09 16:08:43 +09:00
client Merge "adb: fix push --sync with multiple inputs." 2020-09-11 04:55:49 +00:00
coverage Merge changes Id8d9fa6c,I47d3ad50,I7cebbf75,Id10e320a 2020-05-12 05:32:48 +00:00
crypto [adb] Correctly read host/user name on Windows. 2020-08-03 18:55:17 -07:00
daemon adbd: Fix check against valid payload size 2020-09-18 19:26:45 +00:00
fastdeploy Remove unneeded optimize_for lite 2020-05-01 16:11:22 +02:00
fdevent Update language to comply with Android's inclusive language guidance 2020-07-31 16:36:06 -06:00
libs adb: mark kMaxProcessNameLength as constexpr. 2020-04-27 14:38:28 -07:00
pairing_auth Fix pairing aes_128_gcm key initialization. 2020-03-26 02:17:34 +00:00
pairing_connection Remove host_supported from libadb_pairing_server. 2020-04-15 06:53:38 +00:00
proto Statically link libadbd into minadbd. 2020-03-31 19:16:08 -07:00
sysdeps [adb] Correctly read host/user name on Windows. 2020-08-03 18:55:17 -07:00
tls Statically link libadbd into minadbd. 2020-03-31 19:16:08 -07:00
tools check_ms_os_desc: fix buffer overflow. 2020-06-03 15:32:06 -07:00
.clang-format
adb.bash
adb.cpp adbd: avoid compiling more code in the daemon. 2020-04-27 14:38:28 -07:00
adb.h adb: add option to disable kill-server. 2020-04-06 14:33:14 -07:00
adb_auth.h [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
adb_integration_test_adb.xml
adb_integration_test_device.xml
adb_io.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_io.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_io_test.cpp
adb_listeners.cpp adbd: avoid compiling more code in the daemon. 2020-04-27 14:38:28 -07:00
adb_listeners.h adbd: avoid compiling more code in the daemon. 2020-04-27 14:38:28 -07:00
adb_listeners_test.cpp adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
adb_mdns.h adb: change mdns tls service names (RFC 6763). 2020-04-20 21:03:15 +00:00
adb_test.xml Add test config for adbd_test and apply MainlineTestModuleController to it 2020-05-08 16:47:07 -07:00
adb_trace.cpp adbd: respect ADB_TRACE on host adbd. 2020-04-27 14:38:28 -07:00
adb_trace.h adbd: remove static dependency on libcutils. 2020-02-24 17:58:06 -08:00
adb_unique_fd.cpp
adb_unique_fd.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_utils.cpp Allow overriding the log path. 2019-07-30 12:26:31 -07:00
adb_utils.h Update language to comply with Android's inclusive language guidance 2020-07-31 16:36:06 -06:00
adb_utils_test.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
adb_wifi.h 'adb pair' by mdns instance name. 2020-05-18 14:23:01 -07:00
Android.bp Merge "Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)" into stage-aosp-master 2020-09-01 20:04:21 +00:00
benchmark_device.py
bugreport_test.cpp
compression_utils.h adb: implement zstd compression for file sync. 2020-05-28 13:00:01 -07:00
file_sync_protocol.h adb: implement zstd compression for file sync. 2020-05-28 13:00:01 -07:00
mdns_test.cpp adb: change mdns tls service names (RFC 6763). 2020-04-20 21:03:15 +00:00
MODULE_LICENSE_APACHE2
NOTICE
OVERVIEW.TXT
OWNERS
protocol.txt [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
security_log_tags.h
services.cpp adb: allow wait-for-disconnect to match offline for TCP devices. 2020-04-21 17:57:15 -07:00
services.h Support adb rescue wipe command 2019-04-29 15:21:50 -07:00
SERVICES.TXT
shell_protocol.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
shell_service_protocol.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
shell_service_protocol_test.cpp
SOCKET-ACTIVATION.txt Revert "Revert "Support socket activation of adb server"" 2019-12-11 08:20:20 +00:00
socket.h adbd: avoid compiling more code in the daemon. 2020-04-27 14:38:28 -07:00
socket_spec.cpp Merge changes from topic "adb-mdns" 2020-05-19 00:30:06 +00:00
socket_spec.h Enable "localfilesystem" UNIX domain socket for ADB. 2019-12-04 10:05:05 +09:00
socket_spec_test.cpp Add a few more trivial socket_spec.h tests. 2020-05-12 16:38:11 -07:00
socket_test.cpp adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
sockets.cpp Update language to comply with Android's inclusive language guidance 2020-07-31 16:36:06 -06:00
sockets.dia
SYNC.TXT
sysdeps.h Add missing static for macOS inline. 2020-04-13 17:17:31 -07:00
sysdeps_test.cpp adb: win32: silence wine test failure. 2019-07-16 15:22:51 -07:00
sysdeps_unix.cpp Incremental installations in adb, client/host side. 2020-02-19 08:01:06 -08:00
sysdeps_win32.cpp [adb] Correctly read host/user name on Windows. 2020-08-03 18:55:17 -07:00
sysdeps_win32_test.cpp
test_adb.py [adb] Fix crash in mdns service removal. 2020-07-01 15:06:33 -07:00
test_device.py adb: fix push --sync with multiple inputs. 2020-09-08 18:07:47 -07:00
trace.sh
transport.cpp adb: avoid crash when authenticating without vendor keys. 2020-06-11 21:31:09 -07:00
transport.h Merge "adbd: check auth id." into rvc-dev am: d389d983bc 2020-06-25 23:10:12 +00:00
transport_benchmark.cpp
transport_fd.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
transport_test.cpp adbd: avoid compiling more code in the daemon. 2020-04-27 14:38:28 -07:00
types.cpp adb: fix front_size, front_data. 2020-04-02 17:11:07 -07:00
types.h adb: fix front_size, front_data. 2020-04-02 17:11:07 -07:00
types_test.cpp adb: fix front_size, front_data. 2020-04-02 17:11:07 -07:00