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)
commit9a19e56306a4fd2a08e89d51fad3fb6abb8a3c64
tree374fe16c74fff3f85b43bc5eca8d021836d6a52c
parent4b828d35fdf85c384170f930dcbf3013d22f1eb2
Make sure Op->getType() is a PointerType before we cast<> it.

Bug found with AFL fuzz.

llvm-svn: 236193
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/Inputs/invalid-load-pointer-type.bc [new file with mode: 0644]
llvm/test/Bitcode/invalid.test