diff options
author | Erich Keane <erich.keane@intel.com> | 2018-01-09 01:09:12 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2018-01-09 01:09:12 +0000 |
commit | 799f997a14464b3d54eeeb03e9ee5f9633a07eb0 (patch) | |
tree | 44c0c4ba510b20b99247c4a3b4c8f1f6c84e36a6 /lib/Frontend/CompilerInvocation.cpp | |
parent | a19cb264e8dd6c755a6dfd269fd603de0f81b580 (diff) | |
download | clang-799f997a14464b3d54eeeb03e9ee5f9633a07eb0.tar.gz |
Fix use-after-free found by address-san on -r322028.
r322028 attempted to remove something from the "Manglings"
list when it was no longer valid, and did so with 'erase'.
However, StringRefs to these were stored, so these became
dangling references. This patch changes to using 'remove' instead
of 'erase' to keep the strings valid.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions