[all-commits] [llvm/llvm-project] 84bf5e: Fix various problems found by fuzzing.
r4nt via All-commits
all-commits at lists.llvm.org
Mon Nov 22 02:10:42 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 84bf5e328664db2e744c4651c52d2460b1733d09
https://github.com/llvm/llvm-project/commit/84bf5e328664db2e744c4651c52d2460b1733d09
Author: Manuel Klimek <klimek at google.com>
Date: 2021-11-22 (Mon, 22 Nov 2021)
Changed paths:
M clang/lib/Format/ContinuationIndenter.cpp
M clang/lib/Format/TokenAnnotator.cpp
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/lib/Format/WhitespaceManager.cpp
Log Message:
-----------
Fix various problems found by fuzzing.
1. IndexTokenSource::getNextToken cannot return nullptr; some code was
still written assuming it can; make getNextToken more resilient against
incorrect input and fix its call-sites.
2. Change various asserts that can happen due to user provided input to
conditionals in the code.
More information about the All-commits
mailing list