diff options
author | George Burgess IV <gbiv@google.com> | 2020-02-21 14:36:31 -0800 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2020-02-21 14:36:31 -0800 |
commit | 19b500bd505dce85d90f5be6f318399aed9cc990 (patch) | |
tree | 99a7458916a2dcefb93e873f1ea7c3f87d7e6ef4 /libutils/ProcessCallStack_fuzz.cpp | |
parent | e20d3a006a17a25a8f7703d68e17ab114b0a94c3 (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: None
Test: TreeHugger
Change-Id: Ib844aa4ab3ebb297ca8f6f4289bbe3212275275b
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions