[lsan] [FIXUP] Fixup for http://reviews.llvm.org/D54484
After the change, the tests started failing, as skipped sections can be equal in size to kMaxSegName. Changing `<` to `<=` to address the off-by-one problem. llvm-svn: 346804
This commit is contained in:
parent
b2d53c5d7d
commit
6fd29477c3
|
@ -118,7 +118,7 @@ static const char *kSkippedSecNames[] = {
|
|||
// Scans global variables for heap pointers.
|
||||
void ProcessGlobalRegions(Frontier *frontier) {
|
||||
for (auto name : kSkippedSecNames)
|
||||
CHECK(internal_strnlen(name, kMaxSegName) < kMaxSegName);
|
||||
CHECK(internal_strnlen(name, kMaxSegName + 1) <= kMaxSegName);
|
||||
|
||||
MemoryMappingLayout memory_mapping(false);
|
||||
InternalMmapVector<LoadedModule> modules;
|
||||
|
|
Loading…
Reference in New Issue