diff options
author | Mogball <jeff@modular.com> | 2023-09-29 19:15:57 -0700 |
---|---|---|
committer | Mogball <jeff@modular.com> | 2023-09-29 19:17:14 -0700 |
commit | 4b13c86d980af81fb9badc1b6b88f77f4faf5e53 (patch) | |
tree | 01f14b219f63c3396af2ee1be092e586b93d372b /clang/lib/Basic/SourceManager.cpp | |
parent | 466ea89fc6d8bfd197cbc1055bbc38e730e9d523 (diff) | |
download | llvm-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