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:
George Karpenkov 2018-11-13 22:17:16 +00:00
parent b2d53c5d7d
commit 6fd29477c3
1 changed files with 1 additions and 1 deletions

View File

@ -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;