summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorMayank Rana <mrana@quicinc.com>2020-09-11 11:40:00 -0700
committerJosh Gao <jmgao@google.com>2020-09-18 19:26:45 +0000
commit71a33cfa678ddc7704693b45244f3190af1da65d (patch)
tree1c7a4f6ca39d0f3fb955a40a51ba510eab51a52a /trusty/coverage/coverage_test.cpp
parentfd19ef40e8a2868041d50102f5a394e6499d17ce (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. Bug: http://b/168917244 Change-Id: I992bbba9d9a9861a195834f69d62e69b90658210
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions