diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-03-02 17:26:43 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-03-02 17:26:43 +0000 |
commit | 64d2cdf4ec62d16ba2b2b3bc7a99750e7e02eeb3 (patch) | |
tree | 0470324f57892861cf2464112ebed2042938c59c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | d50bca7314b94589385a195894caa579d1d9977d (diff) | |
download | llvm-64d2cdf4ec62d16ba2b2b3bc7a99750e7e02eeb3.zip llvm-64d2cdf4ec62d16ba2b2b3bc7a99750e7e02eeb3.tar.gz llvm-64d2cdf4ec62d16ba2b2b3bc7a99750e7e02eeb3.tar.bz2 |
Detect malformed YAML sequence in yaml::Input::beginSequence()
When reading a yaml::SequenceTraits object, YAMLIO does not report an
error if the yaml item is not a sequence. Instead, YAMLIO reads an
empty sequence. For example:
---
seq:
foo: 1
bar: 2
...
If `seq` is a SequenceTraits object, then reading the above yaml will
yield `seq` as an empty sequence.
Fix this to report an error for the above mapping ("not a sequence")
Patch by William Fisher. Thanks!
llvm-svn: 230976
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions