author | Alexey Samsonov <vonosmas@gmail.com> | |
Mon, 8 Sep 2014 19:16:28 +0000 (19:16 +0000) | ||
committer | Alexey Samsonov <vonosmas@gmail.com> | |
Mon, 8 Sep 2014 19:16:28 +0000 (19:16 +0000) | ||
commit | e769dc39fd90640b71bb3c5b473eee5291804648 | |
tree | 9955636ca54b44ee76531d558d80edb5f778da28 | tree | snapshot (tar.xz tar.gz zip) |
parent | 16ee570cc300549cd0dc680a36325b71d0d02c05 | commit | diff |
Be more careful in parsing Module::ModFlagBehavior value
to make sure we don't do invalid load of an enum. Share the
conversion code between llvm::Module implementation and the
verifier.
This bug was reported by UBSan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217395 91177308-0d34-0410-b5e6-96231b3b80d8
to make sure we don't do invalid load of an enum. Share the
conversion code between llvm::Module implementation and the
verifier.
This bug was reported by UBSan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217395 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Module.h | diff | blob | history | |
lib/IR/Module.cpp | diff | blob | history | |
lib/IR/Verifier.cpp | diff | blob | history |