Skip to content

Commit 9c877d9

Browse files
committed
minor fix
1 parent 4f23b5c commit 9c877d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,10 +745,9 @@ SanitizerInterceptor::findAllocInfoByAddress(uptr Address) {
745745
return std::optional<AllocationIterator>{};
746746
}
747747
--It;
748-
auto &AI = It->second;
749748
// Make sure we got the right AllocInfo
750-
assert(Address >= AI->AllocBegin &&
751-
Address < AI->AllocBegin + AI->AllocSize);
749+
assert(Address >= It->second->AllocBegin &&
750+
Address < It->second->AllocBegin + It->second->AllocSize);
752751
return It;
753752
}
754753

0 commit comments

Comments
 (0)