]> granicus.if.org Git - llvm/commit
[yaml2obj] - Don't crash on invalid document.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 20 Sep 2017 09:57:11 +0000 (09:57 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 20 Sep 2017 09:57:11 +0000 (09:57 +0000)
commit84509c6d52c0764f46bf56807cc7bc73879b92e4
treead8a6b7438dc1b81c11503c27a8f036dc1afbd5b
parente0d66261a1ffee93151d46f00044fc2862549d94
[yaml2obj] - Don't crash on invalid document.

Previously jaml2obj would segfault on empty document.
(without yaml description).
Patch fixes the issue.

Differential revision: https://reviews.llvm.org/D38036

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313746 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/YAMLTraits.h
test/Object/yaml2obj-invalid.yaml [new file with mode: 0644]