summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2020-02-21 14:36:31 -0800
committerJosh Gao <jmgao@google.com>2020-02-24 17:57:58 -0800
commit15c7a3f8f82b5a5730734215cce118f5e2c3025d (patch)
treeb0c785af64b740855218d232e69a3b129e70324c /trusty/coverage/coverage_test.cpp
parent7e41e88cc591fc74b35e313623fabfb518c5fac5 (diff)
incremental_server: fix a use of uninitalized memory
Without this, the caller is likely to assume that their buffer is fully usable, which clang's analyzer doesn't believe is the case. Another option is to set `*size` to nonzero. Caught by the static analyzer: system/core/adb/client/incremental_server.cpp:111:31: warning: 1st function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage] Bug: http://b/150032044 Test: TreeHugger Change-Id: Ib844aa4ab3ebb297ca8f6f4289bbe3212275275b Merged-In: Ib844aa4ab3ebb297ca8f6f4289bbe3212275275b (cherry picked from commit 19b500bd505dce85d90f5be6f318399aed9cc990)
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions