commit | 9525439507149faddced4088c22822b8e1219093 | [log] [tgz] |
---|---|---|
author | Mogball <jeff@modular.com> | Fri Sep 29 19:15:57 2023 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 29 19:22:29 2023 -0700 |
tree | c77f0d5a2665b3cf50c6124d9b289b48ceaf612b | |
parent | 280f5eae9f5e74e0d3ee224581d5e6492285aae3 [diff] |
[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. GitOrigin-RevId: 4b13c86d980af81fb9badc1b6b88f77f4faf5e53