platform_system_core/adb/daemon
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
..
abb.cpp [adb] Speed up the streaming install 2019-08-08 12:55:51 -07:00
abb_service.cpp [adb] Speed up the streaming install 2019-08-08 12:55:51 -07:00
adb_wifi.cpp adbd: check auth id. 2020-06-24 16:25:49 -07:00
auth.cpp adbd: check auth id. 2020-06-24 16:25:49 -07:00
file_sync_service.cpp adb: implement zstd compression for file sync. 2020-05-28 13:00:01 -07:00
file_sync_service.h adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
framebuffer_service.cpp adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
framebuffer_service.h adbd: compile for host. 2019-01-23 12:59:41 -08:00
jdwp_service.cpp adbd: shrink libadbd.so, libadbd_services.so. 2020-03-16 11:30:09 -07:00
logging.cpp adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08:00
logging.h adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08:00
main.cpp Allow shell to write to /sdcard/Android/data and /sdcard/Android/obb. 2020-08-19 09:04:52 +02:00
mdns.cpp Fix bugprone-string-integer-assignment warnings 2020-03-09 15:05:54 -07:00
mdns.h [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
restart_service.cpp adbd: log when exiting due to root/unroot/tcpip/usb. 2019-02-19 13:12:59 -08:00
restart_service.h adbd: compile for host. 2019-01-23 12:59:41 -08:00
services.cpp "track-app" service showing debuggable/profileable apps 2020-03-06 13:56:27 -08:00
shell_service.cpp adb: fix flakiness in PTY shell protocol. 2020-05-19 20:54:40 -07:00
shell_service.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
shell_service_test.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
transport_local.cpp adb: split transport_local.cpp into client/daemon. 2020-04-22 23:15:02 -07:00
transport_qemu.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
usb.cpp adbd: Fix check against valid payload size 2020-09-18 19:26:45 +00:00
usb_ffs.cpp Revert "Reland "adb: daemon: Assign valid fd to usb_handle ep0 file descriptor"" 2020-04-06 16:49:01 -07:00
usb_ffs.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00