[PATCH] D67243: Add crash-triggering test case and more null checks in YAML parser

Thomas Finch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 15:41:13 PDT 2019


thomasfinch created this revision.
Herald added subscribers: llvm-commits, kristina.
Herald added a project: LLVM.

Fix crashes when parsing flow tokens outside of a mapping or sequence node

Fix assert when reading a directive then a mapping with no value

Fix infinite loop in unescapeDoubleQuoted for invalid escapes

Make Scanner::consume unexpected characters error nonfatal

Fix ASan-caught use-after-poison with YAML parser SimpleKeys

Add test for unknown directives


Repository:
  rL LLVM

https://reviews.llvm.org/D67243

Files:
  lib/Support/YAMLParser.cpp
  lib/Support/YAMLTraits.cpp
  unittests/Support/YAMLIOTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67243.218997.patch
Type: text/x-patch
Size: 6606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190905/aa7cb063/attachment.bin>


More information about the llvm-commits mailing list