HomePhabricator

[analyzer] Fix memory sanitizer error in MallocChecker.

Authored by rnkovacs on Jul 19 2018, 10:43 AM.

Description

[analyzer] Fix memory sanitizer error in MallocChecker.

StringRef's data() returns a string that may be non-null-terminated.
Switch to using StringRefs from const char pointers in visitor notes
to avoid problems.

llvm-svn: 337474

Details

Committed
rnkovacsJul 19 2018, 10:43 AM
Parents
rGe69755a55f43: Fix unused variable warning.
Branches
Unknown
Tags
Unknown