[all-commits] [llvm/llvm-project] ac385c: Fix null dereference in yaml::Document::skip
Don Hinton via All-commits
all-commits at lists.llvm.org
Mon Nov 11 20:50:31 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ac385ca63fe8bc283d7f5be213319cc3b930b4cc
https://github.com/llvm/llvm-project/commit/ac385ca63fe8bc283d7f5be213319cc3b930b4cc
Author: Thomas Finch <tfinch at apple.com>
Date: 2019-11-11 (Mon, 11 Nov 2019)
Changed paths:
M llvm/lib/Support/YAMLParser.cpp
M llvm/unittests/Support/YAMLParserTest.cpp
Log Message:
-----------
Fix null dereference in yaml::Document::skip
Summary: The attached test case replicates a null dereference crash in
`yaml::Document::skip()`. This was fixed by adding a check and early
return in the method.
Reviewers: Bigcheese, hintonda, beanz
Reviewed By: hintonda
Subscribers: hiraditya, dexonsmith, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69974
More information about the All-commits
mailing list