[BitcodeReader] Change an assert to a call to a call to Error()
authorFilipe Cabecinhas <me@filcab.net>
Sat, 30 May 2015 00:17:20 +0000 (00:17 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Sat, 30 May 2015 00:17:20 +0000 (00:17 +0000)
commit3b821159da170b233a3ba8c12ce47ee6662946f0
tree05e2c7a57143ca4ae0827e2bee76deef70a60d38
parentdbf84c95fe91e15be7e90146e4d754b6b9c1005b
[BitcodeReader] Change an assert to a call to a call to Error()

It's reachable from user input.

Bug found with AFL fuzz.

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