File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
system/lib/compiler-rt/lib/asan Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2270,7 +2270,7 @@ def check_memory_setting(setting):
2270
2270
2271
2271
# We start our global data after the shadow memory.
2272
2272
# We don't need to worry about alignment here. wasm-ld will take care of that.
2273
- settings .GLOBAL_BASE = shadow_size + 1
2273
+ settings .GLOBAL_BASE = shadow_size
2274
2274
2275
2275
if not settings .ALLOW_MEMORY_GROWTH :
2276
2276
settings .INITIAL_MEMORY = total_mem
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ void InitializeShadowMemory() {
24
24
// Assert that the shadow region is large enough. We don't want to start
25
25
// running into the static data region which starts right after the shadow
26
26
// region.
27
- uptr max_address = __builtin_wasm_memory_size (0 ) * WASM_PAGE_SIZE;
27
+ uptr max_address = ( __builtin_wasm_memory_size (0 ) * WASM_PAGE_SIZE) - 1 ;
28
28
uptr max_shadow_address = MEM_TO_SHADOW (max_address);
29
29
// TODO(sbc): In the growable memory case we should really be checking this
30
30
// every time we grow.
You can’t perform that action at this time.
0 commit comments