platform_system_core/fastboot/device
Keith Mok 3724bbcbe9 Fix userspace fastboot with fuzzy test
Add more checking for fastboot to detect malformed
requests.
Such as checking no control characters in the command
send from host.
Make sure the download command length is eight bytes.
And report FAIL if download length is zero.

Test: adb reboot fastboot
      fuzzy_fastboot --gtest_filter=Fuzz.DownloadInvalid1
      fuzzy_fastboot --gtest_filter=Fuzz.DownloadInvalid2
      fuzzy_fastboot --gtest_filter=Fuzz.DownloadInvalid7
      fuzzy_fastboot --gtest_filter=Fuzz.DownloadInvalid8
Bug: 212628476
Change-Id: I750174205377395b5328923fb00462d078f3310d
2022-01-04 19:24:23 +00:00
..
commands.cpp Fix userspace fastboot with fuzzy test 2022-01-04 19:24:23 +00:00
commands.h fastbootd: Add fetch command on device 2021-03-17 15:38:06 -07:00
fastboot_device.cpp Fix userspace fastboot with fuzzy test 2022-01-04 19:24:23 +00:00
fastboot_device.h fastboot: use health AIDL HAL 2021-12-06 23:18:32 -08:00
flashing.cpp fastbootd: use O_DIRECT for write partition 2021-11-04 13:24:33 -07:00
flashing.h fastbootd: Remove metadata merging code. 2018-10-26 13:34:40 -07:00
main.cpp Add fastbootd. 2018-08-02 09:43:23 -07:00
tcp_client.cpp fastbootd: Support TCP protocol. 2020-05-19 19:11:25 +00:00
tcp_client.h fastbootd: Support TCP protocol. 2020-05-19 19:11:25 +00:00
usb.cpp fastboot device: Disallow implicit conversion from unique_fd to int. 2021-03-22 19:30:59 -07:00
usb.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00
usb_client.cpp fastbootd: Fix USB transport data is repeated every 256K 2021-03-05 19:45:00 -08:00
usb_client.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00
utility.cpp fastbootd: allow passage of flags to open partition 2021-11-04 12:05:48 -07:00
utility.h fastbootd: allow passage of flags to open partition 2021-11-04 12:05:48 -07:00
variables.cpp fastboot: use health AIDL HAL 2021-12-06 23:18:32 -08:00
variables.h fastbootd: Add getvar max-fetch-size. 2021-03-17 15:38:06 -07:00