[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)
commit14e686774d8807265d921ff0c2d1e8ac8e1ab072
tree588968e09e07d5037e0c3244cd81903616c8d896
parentb82e33106bdfcace762c441f628f1125ae6a0957
[BitcodeReader] Change an assert to a call to a call to Error()

It's reachable from user input.

Bug found with AFL fuzz.

llvm-svn: 238633
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/Inputs/invalid-metadata-not-followed-named-node.bc [new file with mode: 0644]
llvm/test/Bitcode/invalid.test