[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)
commit1c0b496636bb76a56fa4606f9f1f6bc41d5f6163
tree6af2f731013b13e6efe5b75a52247a4b3ca6378f
parent316f9e05ced58a19a4388ee8e3bf51f0372a0117
[BitcodeReader] Change assert to report_fatal_error

It can be triggered by user input.

Bug found with AFL fuzz.

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