llvm-project/llvm/unittests
Vlad Tsyrklevich b42db1567c Fix llvm-special-case-list-fuzzer regexp exception
Summary:
Original oss-fuzz report:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3727#c2

The minimized test case that causes this failure:
5b 5b 5b 3d 47 53 00 5b  3d 5d 5b 5d 0a     [[[=GS.[=][].

Note the string "=GS\x00". The failure happens because the code is
searching the string against an array of known collated names. "GS\x00"
is a hit, but since len takes into account an extra NUL byte, indexing
into cp->name[len] goes one byte past it's allocated memory. Fix this to
use a strlen(cp->name) comparison to account for NUL bytes in the input.

Reviewers: pcc

Reviewed By: pcc

Subscribers: hctim, kcc

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

llvm-svn: 316786
2017-10-27 19:15:13 +00:00
..
ADT Add a new Simulator entry for the target triple environment. 2017-10-23 21:51:50 +00:00
Analysis Revert "[SCEV] Maintain and use a loop->loop invalidation dependency" 2017-10-17 01:03:56 +00:00
AsmParser
BinaryFormat
Bitcode
CodeGen Revert "TargetMachine: Merge TargetMachine and LLVMTargetMachine" 2017-10-12 22:57:28 +00:00
DebugInfo [codeview] Add support for inlinee lists 2017-10-23 23:43:40 +00:00
ExecutionEngine [ORC] Replace decltype with a concrete type to make MSVC happy. 2017-09-29 05:03:43 +00:00
FuzzMutate
IR Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
LineEditor
Linker Fix build for LLVM unittests 2017-09-15 21:12:13 +00:00
MC
MI
Object
ObjectYAML
Option
ProfileData [Coverage] Simplify r316141. NFC. 2017-10-19 06:16:23 +00:00
Support Fix llvm-special-case-list-fuzzer regexp exception 2017-10-27 19:15:13 +00:00
Target
Transforms Reapply r316582 [Local] Fix a bug in the domtree update logic for MergeBasicBlockIntoOnlyPred. 2017-10-26 15:04:53 +00:00
XRay
tools Add FileVerifier::isCFIProtected(). 2017-10-25 21:21:16 +00:00
CMakeLists.txt Reland 'Classify llvm-cfi-verify.' 2017-10-11 20:35:01 +00:00