summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.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
commite96874478e964415214e2b41b94ca8211a82a520 (patch)
tree2cae6f562ac38a2dcc8f9c669492914a5c8a325d /trusty/coverage/coverage.cpp
parent09f012c611d5f345c3bbe8a88443cdd2e59d2e50 (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.cpp')
0 files changed, 0 insertions, 0 deletions