AsmParser: Don't crash if a null byte is inside a quoted string
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 00:43:17 +0000 (00:43 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 10 Dec 2014 00:43:17 +0000 (00:43 +0000)
commiteca84264a752f65f6139298baae191b05149a3ec
treeab2b54dd59232e8f2396bebe26eb1f7bc2e9619e
parentf8225ab80f1a0e1f1e3a2d4af6cb229832459cbe
AsmParser: Don't crash if a null byte is inside a quoted string

We don't allow Value* to have names which contain null bytes.  The
AsmParser should reject .ll files that try to do this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLLexer.h
test/Assembler/invalid-name.ll