Skip to content

Commit 07647a1

Browse files
committed
add comment
1 parent 30c2167 commit 07647a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/loader/layers/sanitizer/msan/msan_interceptor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,12 @@ MsanInterceptor::findAllocInfoByAddress(uptr Address) {
390390
}
391391
--It;
392392

393+
// Since we haven't intercepted all USM APIs, we can't make sure the found AllocInfo is correct.
393394
if (Address < It->second->AllocBegin ||
394395
Address >= It->second->AllocBegin + It->second->AllocSize) {
395396
return std::nullopt;
396397
}
398+
397399
return It;
398400
}
399401

0 commit comments

Comments
 (0)