Skip to content

Commit

Permalink
Fix args passed to __asan_region_is_poisoned
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgoij authored and lerno committed Nov 25, 2024
1 parent 3f7f7a0 commit 9112d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/core/sanitizer/asan.c3
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ macro bool address_is_poisoned(void* addr)
macro void* region_is_poisoned(void* beg, usz size)
{
$if env::ADDRESS_SANITIZER:
return __asan_region_is_poisoned(addr);
return __asan_region_is_poisoned(beg, size);
$else
return null;
$endif
Expand Down

0 comments on commit 9112d63

Please sign in to comment.