OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b1082
)
Apply patch for use-after-free in InlineAsm constant handling,
author
Dale Johannesen
<dalej@apple.com>
Tue, 2 Nov 2010 17:59:27 +0000
(17:59 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Tue, 2 Nov 2010 17:59:27 +0000
(17:59 +0000)
PR 8522 /
8616046
. Test reduction, analysis and patch by Tim Deegan!
(However, review by someone who understands the classes here better
is welcome. John Krum will return!)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118030
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/InlineAsm.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/InlineAsm.cpp
b/lib/VMCore/InlineAsm.cpp
index
d951a29
..
e4f99f0
100644
(file)
--- a/
lib/VMCore/InlineAsm.cpp
+++ b/
lib/VMCore/InlineAsm.cpp
@@
-47,6
+47,7
@@
InlineAsm::InlineAsm(const PointerType *Ty, const std::string &asmString,
}
void InlineAsm::destroyConstant() {
+ getRawType()->getContext().pImpl->InlineAsms.remove(this);
delete this;
}