[all-commits] [llvm/llvm-project] c92ff2: [BOLT][NFC] Fix possible use-after-free
treapster via All-commits
all-commits at lists.llvm.org
Mon Nov 14 05:41:24 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c92ff2a3c449d2de502dc8444a0fdad5b4c42ff4
https://github.com/llvm/llvm-project/commit/c92ff2a3c449d2de502dc8444a0fdad5b4c42ff4
Author: revunov.denis at huawei.com <revunov.denis at huawei-partners.com>
Date: 2022-11-14 (Mon, 14 Nov 2022)
Changed paths:
M bolt/lib/Core/BinaryContext.cpp
Log Message:
-----------
[BOLT][NFC] Fix possible use-after-free
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.
Reviewed By: rafauler
Differential Revision: https://reviews.llvm.org/D137616
More information about the All-commits
mailing list