summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2020-11-09 22:15:16 -0800
committerGeorge Burgess IV <gbiv@google.com>2020-11-09 22:24:37 -0800
commit1c8d814cea0a794e3fac8c9ab5ab7d92ef048bbe (patch)
tree2cae6f562ac38a2dcc8f9c669492914a5c8a325d /trusty/coverage/coverage_test.cpp
parent2abdb1eb5b83c8f39874644af576c869815f5c5b (diff)
fs_mgr: fix potential uses of nullptr
Clang's static analyzer flagged the following potential null pointer dereferences. Looks like a transitive caller of this function has ``` if (change) *change = foo; ``` ...and no nullness checks between that and these unconditional assignments to `*change`. > system/core/fs_mgr/fs_mgr_overlayfs.cpp:1100:13: warning: Dereference of null pointer (loaded from variable 'change') [clang-analyzer-core.NullDereference] > system/core/fs_mgr/fs_mgr_overlayfs.cpp:1167:17: warning: Dereference of null pointer (loaded from variable 'change') [clang-analyzer-core.NullDereference] Bug: None Test: TreeHugger Change-Id: I656e3b0f56b18ec3ca3d1db773feb81adf163122
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions