Commit 4b13c86d authored by Mogball's avatar Mogball
Browse files

[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.
parent 466ea89f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment