Skip to content

Commit ac44434

Browse files
authored
Fix typo in install_debug_wrapper() (#25210)
Fix typo in install_debug_wrapper() that accidentally caused export wrappers to be created for all asan funtions, like __asan_loadN() and __asan_storeN(). These functions are 'low-level assembly functions' that operate outside the Emscripten C runtime being alive or not, similar to e.g. the stack init functions.
1 parent 873dc2e commit ac44434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/emscripten.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ def install_debug_wrapper(sym):
900900
# The emscripten stack functions are called very early (by writeStackCookie) before
901901
# the runtime is initialized so we can't create these wrappers that check for
902902
# runtimeInitialized.
903-
if sym.startswith(('_asan_', 'emscripten_stack_', '_emscripten_stack_')):
903+
if sym.startswith(('__asan_', 'emscripten_stack_', '_emscripten_stack_')):
904904
return False
905905
# Likewise `__trap` can occur before the runtime is initialized since it is used in
906906
# abort.

0 commit comments

Comments
 (0)