[bitcode reader] Fix an assert on invalid type tables
authorFilipe Cabecinhas <me@filcab.net>
Fri, 30 Jan 2015 10:57:58 +0000 (10:57 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 30 Jan 2015 10:57:58 +0000 (10:57 +0000)
commit8cf149dbadda7bff3e96b2e8db42397c4f94356b
tree043bb3718ef8cbacf1dbc7f9d6ba961c3d8ad51f
parente21839b3771cc95a3ae23bb7a13e74df14ad5ea3
[bitcode reader] Fix an assert on invalid type tables

Bug found with afl-fuzz

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