diff options
| author | Shilei Tian <i@tianshilei.me> | 2025-08-01 00:07:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-01 00:07:57 -0400 |
| commit | faa4c4c2dc804c31845d8f036345fac00e016f2d (patch) | |
| tree | 81a3902f5369c1f162a93779ebe117a9c4d3439e /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | 253a9f2c52b40c3b74f8569c6d0a949ad4a60bf5 (diff) | |
[RegAlloc] Fix use-after-free in `RegAllocBase::cleanupFailedVReg` (#151435)
#128400 introduced a use-after-free bug in
`RegAllocBase::cleanupFailedVReg` when removing intervals from regunits.
The issue is from the `InterferenceCache` in `RAGreedy`, which holds
`LiveRange*`. The current `InterferenceCache` APIs make it difficult to
update it, and there isn't a straightforward way to do that.
Since #128400 already mentions it's not clear about the necessity of
removing intervals from regunits, this PR avoids the issue by simply
skipping that step.
Fixes SWDEV-527146.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
