[BitcodeReader] It's a malformed block if CodeLenWidth is too big
authorFilipe Cabecinhas <me@filcab.net>
Tue, 19 May 2015 00:34:17 +0000 (00:34 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Tue, 19 May 2015 00:34:17 +0000 (00:34 +0000)
commitc3ccd67d726a284addde38c9d96dda666143274a
treeff66f79d7dce057cdf064d82638ac2b07e8ff178
parent09f87b4a7b2ea4e9831fb2d795bf8e675fd97827
[BitcodeReader] It's a malformed block if CodeLenWidth is too big

Bug found with AFL fuzz.

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