If NewName twine has reference to the old name, then after Section.Name = NewName.str(); this reference is invalidated, so we cannot use NewName.str() anymore.
Details
Details
- Reviewers
rafauler Amir maksfb - Commits
- rGc92ff2a3c449: [BOLT][NFC] Fix possible use-after-free
Summary
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This revision is now accepted and ready to land.Nov 10 2022, 4:05 PM
Closed by commit rGc92ff2a3c449: [BOLT][NFC] Fix possible use-after-free (authored by revunov.denis@huawei.com <revunov.denis@huawei-partners.com>). · Explain WhyNov 14 2022, 5:41 AM
This revision was automatically updated to reflect the committed changes.