[PATCH] D35432: Only scan global sections containing data in LSan on darwin
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 15:34:00 PDT 2017
alekseyshl accepted this revision.
alekseyshl added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/sanitizer_common/sanitizer_common.h:751
+ this->name[0] = '\0';
+ if (name) internal_strncpy(this->name, name, ARRAY_SIZE(this->name));
+ }
----------------
Nit: maybe do it this way:
internal_strncpy(this->name, (name ? name : ""), ARRAY_SIZE(this->name));
https://reviews.llvm.org/D35432
More information about the llvm-commits
mailing list