Skip to content

Commit 0bc383a

Browse files
authored
Merge pull request #7785 from apple/m_borsa/cherry-pick-c2205ab309
[Cherry-pick into stable/20230725][Sanitizers][Darwin] Pass offset to __asan_set_shadow_xx (llvm#71745)
2 parents 21398db + 8c33cd5 commit 0bc383a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/asan_abi/asan_abi_shim.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ void __asan_handle_no_return(void) { __asan_abi_handle_no_return(); }
6565

6666
// Variables concerning RTL state. These provisionally exist for completeness
6767
// but will likely move into the Stable ABI implementation and not in the shim.
68-
uptr __asan_shadow_memory_dynamic_address = (uptr)0xdeaddeaddeadbeaf;
69-
int __asan_option_detect_stack_use_after_return = 0;
68+
uptr __asan_shadow_memory_dynamic_address = (uptr)0L;
69+
int __asan_option_detect_stack_use_after_return = 1;
7070

7171
// Functions concerning memory load and store reporting
7272
void __asan_report_load1(uptr addr) {

0 commit comments

Comments
 (0)