summaryrefslogtreecommitdiff
path: root/logd/SerializedLogChunkTest.cpp
diff options
context:
space:
mode:
authorMayank Rana <mrana@codeaurora.org>2020-09-11 11:40:00 -0700
committerMayank Rana <mrana@codeaurora.org>2020-09-15 09:40:27 -0700
commit12893b8341d42fd633bd3a7210532996782ed62d (patch)
treeace5f45c5c98e8a0ea4fc4216a94580383262bfd /logd/SerializedLogChunkTest.cpp
parent741c5344243e9e107c35d5762e9ea726f4ffff62 (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 'logd/SerializedLogChunkTest.cpp')
0 files changed, 0 insertions, 0 deletions