Skip to content

Commit dcae4fd

Browse files
authored
Merge pull request #2624 from RossBrunton/ross/msanfix
Assert that Device is valid for memory poisoning
2 parents f97d7c3 + 50a7afe commit dcae4fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ur_result_t MsanInterceptor::allocateMemory(ur_context_handle_t Context,
7575
if (Type != AllocType::DEVICE_USM) {
7676
return UR_RESULT_SUCCESS;
7777
}
78+
assert(Device);
7879

7980
auto AI = std::make_shared<MsanAllocInfo>(MsanAllocInfo{(uptr)Allocated,
8081
Size,

0 commit comments

Comments
 (0)