Skip to content

Commit 2578b75

Browse files
authored
[SYCL][DeviceSanitizer] Fix incorrect private shadow range check (#14842)
A simple typo introduced in #13450 Was causing false-positive `[kernel] Private shadow memory out-of-bound` errors.
1 parent 537fd11 commit 2578b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libdevice/sanitizer_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ inline uptr MemToShadow_DG2(uptr addr, uint32_t as) {
196196

197197
auto launch_info = (__SYCL_GLOBAL__ const LaunchInfo *)__AsanLaunchInfo;
198198
const auto shadow_offset = launch_info->PrivateShadowOffset;
199-
const auto shadow_offset_end = launch_info->LocalShadowOffsetEnd;
199+
const auto shadow_offset_end = launch_info->PrivateShadowOffsetEnd;
200200

201201
if (shadow_offset == 0) {
202202
return 0;

0 commit comments

Comments
 (0)