Skip to content

Commit 23969c6

Browse files
authored
[DevMSAN] Fix wrong arguments when calling Memset (#19188)
1 parent 6eb4a92 commit 23969c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libdevice/sanitizer/msan_rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ DEVICE_EXTERN_C_NOINLINE void __msan_poison_shadow_static_local(uptr ptr,
537537
auto shadow_address = MemToShadow(ptr, ADDRESS_SPACE_LOCAL);
538538
if (shadow_address == GetMsanLaunchInfo->CleanShadow)
539539
return;
540-
Memset((__SYCL_GLOBAL__ char *)shadow_address, size, 0xff);
540+
Memset((__SYCL_GLOBAL__ char *)shadow_address, 0xff, size);
541541

542542
MSAN_DEBUG(__spirv_ocl_printf(__mem_set_shadow_local, shadow_address,
543543
shadow_address + size, 0xff));

0 commit comments

Comments
 (0)