[BitcodeReader] Change assert to report_fatal_error
authorFilipe Cabecinhas <me@filcab.net>
Wed, 27 May 2015 01:05:40 +0000 (01:05 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 27 May 2015 01:05:40 +0000 (01:05 +0000)
commit6a92a3fe3423f48b71a1a138a8553a067246361d
treec7c35d74f32bac26c9e68dee46b89a9329537841
parentad60a9a5160c8ab5db8c3aa8292cde5cc5821be3
[BitcodeReader] Change assert to report_fatal_error

It can be triggered by user input.

Bug found with AFL fuzz.

llvm-svn: 238272
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/Inputs/invalid-fwdref-type-mismatch-2.bc [new file with mode: 0644]
llvm/test/Bitcode/invalid.test