Make sure Op->getType() is a PointerType before we cast<> it.
authorFilipe Cabecinhas <me@filcab.net>
Thu, 30 Apr 2015 01:13:31 +0000 (01:13 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 30 Apr 2015 01:13:31 +0000 (01:13 +0000)
commit8b2199e2a28b75ff3edf36fc7157085da31301cf
tree40dae22ebdb69e80d90dca77798f18454b4fca62
parent49baa9f89617593975fffd665b8c0b606f874aa0
Make sure Op->getType() is a PointerType before we cast<> it.

Bug found with AFL fuzz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236193 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
test/Bitcode/Inputs/invalid-load-pointer-type.bc [new file with mode: 0644]
test/Bitcode/invalid.test