diff options
author | Mayank Rana <mrana@codeaurora.org> | 2020-09-11 11:40:00 -0700 |
---|---|---|
committer | Mayank Rana <mrana@codeaurora.org> | 2020-09-15 09:40:27 -0700 |
commit | 12893b8341d42fd633bd3a7210532996782ed62d (patch) | |
tree | ace5f45c5c98e8a0ea4fc4216a94580383262bfd /adb/client/incremental_utils.cpp | |
parent | 741c5344243e9e107c35d5762e9ea726f4ffff62 (diff) |
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.
CRs-Fixed: 2739606
Change-Id: I992bbba9d9a9861a195834f69d62e69b90658210
Diffstat (limited to 'adb/client/incremental_utils.cpp')
0 files changed, 0 insertions, 0 deletions