[PATCH] D84050: YAML: Don't assume an arbitrary StringRef is null terminated

Scott Linder via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 15:19:42 PST 2020


scott.linder updated this revision to Diff 304670.
scott.linder added a comment.

Try to keep the parser from running off the end of the buffer and dereferencing
the result; add some unit tests to try to stress pieces being changed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84050/new/

https://reviews.llvm.org/D84050

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84050.304670.patch
Type: text/x-patch
Size: 4717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201111/9d58bda0/attachment.bin>


More information about the llvm-commits mailing list