Error out when faced with value names containing '\0'
authorFilipe Cabecinhas <me@filcab.net>
Wed, 4 Nov 2015 14:53:36 +0000 (14:53 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Wed, 4 Nov 2015 14:53:36 +0000 (14:53 +0000)
commitc3c89b471b2e30c85c37d17984e1260c56b6d06f
treec4a1253c2d9167116eadf91bcb412b47f19864ce
parent1cfa35bef64d6a8eef60fc80f9fbe5e44fd4bdcc
Error out when faced with value names containing '\0'

Bug found with afl-fuzz.

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