Check bit widths before trying to get a type.
authorFilipe Cabecinhas <me@filcab.net>
Fri, 30 Jan 2015 18:13:50 +0000 (18:13 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 30 Jan 2015 18:13:50 +0000 (18:13 +0000)
commit1897b5c08c96777547de1c71e617757314a991ca
tree8ee2268df7bb1d76a1561cd1cf257f4fe278f7e6
parentdd62b7ae967ed8f9489098488df6df295e9ca5cb
Check bit widths before trying to get a type.

Added a test case for it.
Also added run lines for the test case in r227566.

Bugs found with afl-fuzz

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