aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-06-03 17:10:35 +0200
committerGitHub <noreply@github.com>2024-06-03 17:10:35 +0200
commit1c9f4d4b6ffff86a681196d0a7e083e3eaeabaeb (patch)
treee1318c1a55b3adbb9c7a1fc9716022b00ca9a358 /lldb/packages/Python/lldbsuite/test
parent4023f4e70dc3cb23871cddc9c047874e4c477a51 (diff)
downloadllvm-1c9f4d4b6ffff86a681196d0a7e083e3eaeabaeb.zip
llvm-1c9f4d4b6ffff86a681196d0a7e083e3eaeabaeb.tar.gz
llvm-1c9f4d4b6ffff86a681196d0a7e083e3eaeabaeb.tar.bz2
[ARM] Avoid reference into modified vector (#93965)
FirstCand is a reference to RepeatedSequenceLocs[0]. However, that vector is being modified a lot throughout the function, including one place that reassigns the whole vector. I'm not sure whether this can really happen in practice, but it doesn't seem unlikely that this could lead to a use-after-free. Avoid this by directly using RepeatedSequenceLocs[0] at the start of the function (as a lot of other places already do) and only creating FirstCand at the end where no more modifications take place.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions