Check that we have a valid PointerType element type before calling get()
authorFilipe Cabecinhas <me@filcab.net>
Wed, 29 Apr 2015 02:27:28 +0000 (02:27 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 29 Apr 2015 02:27:28 +0000 (02:27 +0000)
commitd8a1bcd0ade5f9d077383bd9ac7e146886439fb2
treee15cd0168c607150ba5635abaa6885afa1254ac5
parent52d42c725a43f9a429b009357cf147eb071fa940
Check that we have a valid PointerType element type before calling get()

Same as r236073 but for PointerType.

Bug found with AFL fuzz.

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