diff options
| author | Fangrui Song <i@maskray.me> | 2024-06-25 13:14:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-25 13:14:39 -0700 |
| commit | bd5b77529f07d21c27cf14009845e319e454867d (patch) | |
| tree | fc07df345b33027c062e5f489ba3df2afc546250 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 600ff287722a15106e9a02c470b9865dda05980e (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
