| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 292681
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D28972
llvm-svn: 292670
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
libraries.
In order to use sanitizers on Windows, we need to link against many runtime
libraries which will depend on the target being created (executable or dll) and
the c runtime library used (MT/MD).
By default, cmake uses link.exe for linking, which fails because we don't
specify the appropiate dependencies. As we don't want to consider all of that
possible situations which depends on the implementation of the compiler-rt, the
simplest option is to change the rules for linking executables and shared
libraries, using the compiler instead of link.exe.
Clang driver will consider the sanitizer flags, and automatically provide the
required libraries to the linker.
Differential Revision: https://reviews.llvm.org/D27869
llvm-svn: 292669
|
|
|
|
|
|
|
|
| |
Replace "-g" by "-gline-tables-only". "-g" is not supported by clang-cl.
Differential Revision: https://reviews.llvm.org/D27868
llvm-svn: 292668
|
|
|
|
|
|
| |
argv[0]
llvm-svn: 292652
|
|
|
|
| |
llvm-svn: 292646
|
|
|
|
| |
llvm-svn: 292520
|
|
|
|
|
|
| |
special case 2-byte inputs
llvm-svn: 292511
|
|
|
|
| |
llvm-svn: 292509
|
|
|
|
| |
llvm-svn: 292325
|
|
|
|
| |
llvm-svn: 292319
|
|
|
|
| |
llvm-svn: 292295
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: The causes google/ossfuzz#84
Reviewers: kcc
Subscribers: mgorny
Differential Revision: https://reviews.llvm.org/D28827
llvm-svn: 292289
|
|
|
|
|
|
| |
code between cmp and memcmp handling)
llvm-svn: 292287
|
|
|
|
|
|
| |
use-after-scope in mutator tests
llvm-svn: 292286
|
|
|
|
| |
llvm-svn: 291195
|
|
|
|
| |
llvm-svn: 291182
|
|
|
|
| |
llvm-svn: 291078
|
|
|
|
| |
llvm-svn: 290899
|
|
|
|
| |
llvm-svn: 290739
|
|
|
|
| |
llvm-svn: 290730
|
|
|
|
| |
llvm-svn: 290703
|
|
|
|
|
|
| |
max_len to 1M and tries to increases the actual max sizes of mutations very gradually (second attempt)
llvm-svn: 290637
|
|
|
|
| |
llvm-svn: 290634
|
|
|
|
|
|
| |
(https://llvm.org/bugs/show_bug.cgi?id=31456)
llvm-svn: 290622
|
|
|
|
|
|
|
|
| |
Reviewers: kcc, vitalybuka
Differential Revision: https://reviews.llvm.org/D27942
llvm-svn: 290138
|
|
|
|
|
|
|
|
|
|
|
| |
that sets max_len to 1M and tries to increases the actual max sizes of mutations very gradually. Also remove a bit of dead code"
This reverts commit r289998.
See comment:
https://reviews.llvm.org/rL289998
llvm-svn: 290043
|
|
|
|
| |
llvm-svn: 290039
|
|
|
|
| |
llvm-svn: 290034
|
|
|
|
| |
llvm-svn: 290033
|
|
|
|
|
|
| |
(to make things faster). Also ensure that the signals from value profile do not intersect with the regular coverage
llvm-svn: 290031
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: This is superceded by protobuf mutation work.
Reviewers: kcc
Subscribers: mgorny
Differential Revision: https://reviews.llvm.org/D27865
llvm-svn: 290018
|
|
|
|
| |
llvm-svn: 289999
|
|
|
|
|
|
| |
max_len to 1M and tries to increases the actual max sizes of mutations very gradually. Also remove a bit of dead code
llvm-svn: 289998
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D27731
llvm-svn: 289966
|
|
|
|
|
|
|
|
|
| |
Remove includes of "unistd.h" header, which is missing in non posix
systems.
Differential Revision: https://reviews.llvm.org/D277300
llvm-svn: 289965
|
|
|
|
|
|
|
|
|
|
|
| |
specific.
Replace sleep() posix function by a more portable sleep_for() function
from std. Also, ignore memmem() and strcasestr() on Windows.
Differential Revision: https://reviews.llvm.org/D27729
llvm-svn: 289964
|
|
|
|
|
|
| |
trace-pc-guard only)
llvm-svn: 289772
|
|
|
|
|
|
| |
might be uninitialized
llvm-svn: 289680
|
|
|
|
|
|
| |
by luck, because the way shifts actually work on clang+x86
llvm-svn: 289607
|
|
|
|
| |
llvm-svn: 289564
|
|
|
|
|
|
|
|
|
|
| |
Windows uses some macros to replace DeleteFile() by DeleteFileA() or
DeleteFileW(). This was causing an error at link time.
DeleteFile was renamed to RemoveFile().
Differential Revision: https://reviews.llvm.org/D27577
llvm-svn: 289563
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement DirName from scratch to avoid dependencies on external libraries.
It's based on MSDN documentation for Naming Files, Paths, and Namespaces.
The algorithm can't simply start from the end and look backwards for the
first separator, because we need to preserve the prefix that represent
the root location. We shouldn't remove anything there. In Windows we
have many different options, like:
\\Server\Share\ , \ , C: , C:\ , \\?\C:\ , \\?\UNC\Server\Share\
We remove the last separator in the rest of the path, if it exists.
It was implemented to have a similar behaviour to dirname() in linux,
removing trailing separators, returning "." when the path doesn't
contain separators, etc.
Differential Revision: https://reviews.llvm.org/D27579
llvm-svn: 289562
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I added a new flag RunningCB to know if the Fuzzer's main thread is
running the CB function, instead of using (!CurrentUnitSize).
(!CurrentUnitSize) doesn't work properly. For example, in FuzzerLoop.cpp,
inside ShuffleAndMinimize() function, we execute the callback with an
empty string (size=0). Previous implementation failed to detect timeouts
in that execution.
Also, I add a regression test for that case.
Differential Revision: https://reviews.llvm.org/D27433
llvm-svn: 289561
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reorganize #includes to follow LLVM Coding Standards.
Include some missing headers. Required to use `Printf()`.
Aside from that, this patch contains no functional change.
It is purely a re-organization.
Differential Revision: https://reviews.llvm.org/D27363
llvm-svn: 289560
|
|
|
|
|
|
|
|
|
|
|
| |
std::thread::hardware_concurrency() returns an unsigned, so I modify
NumberOfCpuCores() to return unsigned too.
The number of cpus is used to define the number of workers, so I decided
to update the worker and jobs flags to be declared as unsigned too.
Differential Revision: https://reviews.llvm.org/D27685
llvm-svn: 289559
|
|
|
|
|
|
|
|
|
|
| |
Use unsigned for PID instead of signed int. GetCurrentProcessId() returns
an unsigned (DWORD) so we must be sure we can deal with all possible values.
I use a long unsigned to be sure it can hold a 32 bit unsigned (DWORD).
Differential Revision: https://reviews.llvm.org/D27281
llvm-svn: 289558
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add new flags to FuzzingOptions to represent the different conditions
on the signal handling. These options are passed when calling
SetSignalHandler().
This changes simplify the implementation of Windows's exception
handling. Now we can define a unique handler for all the exceptions.
Differential Revision: https://reviews.llvm.org/D27238
llvm-svn: 289557
|
|
|
|
|
|
| |
-max_total_time=600). Also respect exact_artifact_path when outputting the end result
llvm-svn: 289506
|
|
|
|
|
|
|
|
|
|
| |
Implemented timeouts for Windows using TimerQueueTimers.
Timers are used to supervise the time of execution of the
callback function that is being fuzzed.
Differential Revision: https://reviews.llvm.org/D27237
llvm-svn: 289495
|