summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-25 13:14:39 -0700
committerGitHub <noreply@github.com>2024-06-25 13:14:39 -0700
commitbd5b77529f07d21c27cf14009845e319e454867d (patch)
treefc07df345b33027c062e5f489ba3df2afc546250 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent600ff287722a15106e9a02c470b9865dda05980e (diff)
__asan_register_elf_globals: properly check the "no instrumented global variable" case
On ELF platforms, the instrumentation registers global variables using `__asan_register_elf_globals` for the default `UseGlobalsGC` case. If all instrumented global variables in a module are discarded by linker GC, we will have `start == stop`. Normally `start == 0`, but `start != 0` is possible with a linker script retaining `asan_globals`. The called `__asan_register_globals` would access out-of-bounds `globals[n-1]`, though there is likely no runtime failure. Pull Request: https://github.com/llvm/llvm-project/pull/96529
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions