aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorMogball <jeff@modular.com>2023-09-29 19:15:57 -0700
committerMogball <jeff@modular.com>2023-09-29 19:17:14 -0700
commit4b13c86d980af81fb9badc1b6b88f77f4faf5e53 (patch)
tree01f14b219f63c3396af2ee1be092e586b93d372b /clang/lib/Basic/SourceManager.cpp
parent466ea89fc6d8bfd197cbc1055bbc38e730e9d523 (diff)
downloadllvm-4b13c86d980af81fb9badc1b6b88f77f4faf5e53.zip
llvm-4b13c86d980af81fb9badc1b6b88f77f4faf5e53.tar.gz
llvm-4b13c86d980af81fb9badc1b6b88f77f4faf5e53.tar.bz2
[ORC] Fix heap-use-after-free error in MachODebugObjectSynthesizer.cpp
At line 191, `addSymbol` takes the name by reference but does not make an internal copy to the string, meaning the local `optional<std::string>` would get freed and leave Orc with a dangling pointer. Fix this by just using an `optional<StringRef>` instead.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions