Skip to content

Commit

Permalink
Merge pull request #2624 from RossBrunton/ross/msanfix
Browse files Browse the repository at this point in the history
Assert that Device is valid for memory poisoning
  • Loading branch information
RossBrunton authored Jan 28, 2025
2 parents 902bb2e + 94b32ac commit 78e1b33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/loader/layers/sanitizer/msan/msan_interceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ ur_result_t MsanInterceptor::allocateMemory(ur_context_handle_t Context,
if (Type != AllocType::DEVICE_USM) {
return UR_RESULT_SUCCESS;
}
assert(Device);

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

0 comments on commit 78e1b33

Please sign in to comment.