]> granicus.if.org Git - clang/commit
[Frontend] Return an error on bad inputs to PrecompiledPreabmle
authorIlya Biryukov <ibiryukov@google.com>
Wed, 22 May 2019 12:50:01 +0000 (12:50 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 22 May 2019 12:50:01 +0000 (12:50 +0000)
commit1811f4cb6d2fe6cd3b1c42b152b2d3d4e4213fea
treeaba9bba30d34dfae079bda3c49e4d97aee42fcd1
parentfc52252f1aa0a19104f89e09bfbc08e545719d32
[Frontend] Return an error on bad inputs to PrecompiledPreabmle

Summary:
Instead of failing with assertions. Fixes a crash found by oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12865

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62137

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361376 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PrecompiledPreamble.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/PrecompiledPreamble.cpp