tools/libFuzzer.git
7 years agoFix coverage-report-server.py script to work with absolute srcpath master
Maria Guseva [Thu, 6 Jul 2017 11:23:53 +0000 (14:23 +0300)]
Fix coverage-report-server.py script to work with absolute srcpath

The issue is due to os.path.join semantics:

If a component is an absolute path, all previous components are thrown away
and joining continues from the absolute path component.

7 years agoAdd upstream LLVM coverage-report-server.py script for sancov dumps visualization
Maria Guseva [Thu, 6 Jul 2017 10:58:36 +0000 (13:58 +0300)]
Add upstream LLVM coverage-report-server.py script for sancov dumps visualization

7 years agoRemove the libsancov_cb hack
Maria Guseva [Wed, 5 Jul 2017 08:51:45 +0000 (11:51 +0300)]
Remove the libsancov_cb hack

Removed as the __sanitizer_cov_trace_pc stub is available now in GCC
for Tizen 4.0 (Tizen:Base).

7 years agoRevert "Add removing of the -Wl,-Bsymbolic options in gcc-force-options script"
Maria Guseva [Wed, 5 Jul 2017 08:45:03 +0000 (11:45 +0300)]
Revert "Add removing of the -Wl,-Bsymbolic options in gcc-force-options script"

This reverts commit 76f20263d005bcb2db00dedbb4e1429a95e6a486.
Reverted as the libsancov_cb hack was removed in previous commit.

7 years agoAdd build of sancov.rpm package to deliver scripts for coverage processing
Maria Guseva [Wed, 5 Jul 2017 08:27:05 +0000 (11:27 +0300)]
Add build of sancov.rpm package to deliver scripts for coverage processing

7 years agoAdd Google code style configuration for pylint
Dmitriy Nikiforov [Wed, 5 Jul 2017 08:26:53 +0000 (11:26 +0300)]
Add Google code style configuration for pylint

link: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/master/pylintrc
7 years agoAdd '--debug-dirs' option to sancov_symbolize.py
Dmitriy Nikiforov [Fri, 9 Jun 2017 16:27:28 +0000 (19:27 +0300)]
Add '--debug-dirs' option to sancov_symbolize.py

Added '--debug-dirs' for specifying paths to directories with .debug files
containing debug information for specified binaries.

Changes:
  - Moved arguments parsing logic to a new function 'parse_args'
  - print_symcov() now accepts list of tuples as its argument instead of a dict
  - Added 'debug_info' argument to get_symbolized_coverage()
  - Updated usage message

7 years agoFix regexp expressions in sancov.py to work with old grep on Tizen
Maria Guseva [Fri, 9 Jun 2017 09:47:36 +0000 (12:47 +0300)]
Fix regexp expressions in sancov.py to work with old grep on Tizen

Grep is known to treat "\s" differently:
only in newer versions it is intrepreted as whitespace.
See http://savannah.gnu.org/bugs/?30515 for details

On Tizen the grep verions is 2.5.2 and "\s" is not yet supported as a special
symbol there.

7 years agoAdd support for __sanitizer_cov_trace_pc to sancov.py
Dmitriy Nikiforov [Thu, 8 Jun 2017 12:07:26 +0000 (15:07 +0300)]
Add support for __sanitizer_cov_trace_pc to sancov.py

7 years agoAdd upstream LLVM sancov.py script for sancov dumps parsing
Dmitriy Nikiforov [Thu, 8 Jun 2017 12:06:15 +0000 (15:06 +0300)]
Add upstream LLVM sancov.py script for sancov dumps parsing

7 years ago[sanitizer-coverage] Add script for coverage symbolization
Dmitriy Nikiforov [Wed, 7 Jun 2017 17:54:21 +0000 (20:54 +0300)]
[sanitizer-coverage] Add script for coverage symbolization

7 years agoFix the includes in lib/Fuzzer on Windows that have ordering
Chandler Carruth [Tue, 6 Jun 2017 23:28:01 +0000 (23:28 +0000)]
Fix the includes in lib/Fuzzer on Windows that have ordering
dependencies and add comments to tell future maintainers about those
requirements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304843 91177308-0d34-0410-b5e6-96231b3b80d8

7 years agoSort the remaining #include lines in include/... and lib/....
Chandler Carruth [Tue, 6 Jun 2017 11:49:48 +0000 (11:49 +0000)]
Sort the remaining #include lines in include/... and lib/....

I did this a long time ago with a janky python script, but now
clang-format has built-in support for this. I fed clang-format every
line with a #include and let it re-sort things according to the precise
LLVM rules for include ordering baked into clang-format these days.

I've reverted a number of files where the results of sorting includes
isn't healthy. Either places where we have legacy code relying on
particular include ordering (where possible, I'll fix these separately)
or where we have particular formatting around #include lines that
I didn't want to disturb in this patch.

This patch is *entirely* mechanical. If you get merge conflicts or
anything, just ignore the changes in this patch and run clang-format
over your #include lines in the files.

Sorry for any noise here, but it is important to keep these things
stable. I was seeing an increasing number of patches with irrelevant
re-ordering of #include lines because clang-format was used. This patch
at least isolates that churn, makes it easy to skip when resolving
conflicts, and gets us to a clean baseline (again).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304787 91177308-0d34-0410-b5e6-96231b3b80d8

7 years ago[llvm] Remove double semicolons
Mandeep Singh Grang [Tue, 6 Jun 2017 05:08:36 +0000 (05:08 +0000)]
[llvm] Remove double semicolons

Reviewers: craig.topper, arsenm, mehdi_amini

Reviewed By: mehdi_amini

Subscribers: mehdi_amini, wdng, nhaehnle, javed.absar, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304767 91177308-0d34-0410-b5e6-96231b3b80d8

7 years ago[libFuzzer] fix a test to match the new sanitizer run-time
Kostya Serebryany [Wed, 31 May 2017 19:47:11 +0000 (19:47 +0000)]
[libFuzzer] fix a test to match the new sanitizer run-time

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304333 91177308-0d34-0410-b5e6-96231b3b80d8

7 years ago[libFuzzer] Don't replace custom signal handlers.
Vitaly Buka [Thu, 25 May 2017 01:43:13 +0000 (01:43 +0000)]
[libFuzzer] Don't replace custom signal handlers.

Summary:
This allows to keep handlers installed by sanitizers.
In other cases third-party code can replace handlers after libFuzzer
initialization anyway.

Reviewers: kcc

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303828 91177308-0d34-0410-b5e6-96231b3b80d8

7 years ago[libFuzzer] fix tests on Windows
Kostya Serebryany [Mon, 15 May 2017 22:55:00 +0000 (22:55 +0000)]
[libFuzzer] fix tests on Windows

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303128 91177308-0d34-0410-b5e6-96231b3b80d8

7 years ago[libFuzzer] improve the afl driver and it's tests. Make it possible to run individual...
Kostya Serebryany [Mon, 15 May 2017 22:38:29 +0000 (22:38 +0000)]
[libFuzzer] improve the afl driver and it's tests. Make it possible to run individual inputs with afl driver

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303125 91177308-0d34-0410-b5e6-96231b3b80d8

7 years ago[libFuzzer] fix a warning from Wunreachable-code-loop-increment reported by Christian...
Kostya Serebryany [Mon, 15 May 2017 17:39:42 +0000 (17:39 +0000)]
[libFuzzer] fix a warning from Wunreachable-code-loop-increment reported by Christian Holler. This also fixes a logical bug, which however does not affect the libFuzzer's ability too much (I wasn't able to create a differentiating test)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303087 91177308-0d34-0410-b5e6-96231b3b80d8

7 years ago[libFuzzer] fix a compiler warning
Kostya Serebryany [Wed, 10 May 2017 23:59:03 +0000 (23:59 +0000)]
[libFuzzer] fix a compiler warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302747 91177308-0d34-0410-b5e6-96231b3b80d8

7 years agoAdd TODO comments to remove the libsancov_cb hack
Maria Guseva [Thu, 1 Jun 2017 11:34:57 +0000 (14:34 +0300)]
Add TODO comments to remove the libsancov_cb hack

7 years agoAdd removing of the -Wl,-Bsymbolic options in gcc-force-options script
Maria Guseva [Fri, 5 May 2017 15:14:58 +0000 (18:14 +0300)]
Add removing of the -Wl,-Bsymbolic options in gcc-force-options script

7 years agoIntroduce fuzz-force-options package
Maria Guseva [Fri, 5 May 2017 16:04:28 +0000 (19:04 +0300)]
Introduce fuzz-force-options package

The packages forces compile options for Address Sanitization and coverage
needed for fuzzing.

7 years agoAdd building dummy lib for SanCov
Maria Guseva [Wed, 10 May 2017 06:44:24 +0000 (09:44 +0300)]
Add building dummy lib for SanCov

7 years agoAdd manifest and spec files needed for GBS build
Maria Guseva [Tue, 2 May 2017 16:13:41 +0000 (19:13 +0300)]
Add manifest and spec files needed for GBS build

7 years agoInitial commit
Maria Guseva [Wed, 10 May 2017 12:01:57 +0000 (15:01 +0300)]
Initial commit

Copied lib/Fuzzer sources from LLVM repo, master branch, rev:

    commit 1df940a102a8bf84dd51df273fa21f438ec83005
    Author: Mikael Holmen <mikael.holmen@ericsson.com>
    Date:   Wed May 10 06:33:43 2017 +0000

    [UnreachableBlockElim] Check return value of constrainRegClass().

    Summary:
    MachineRegisterInfo::constrainRegClass() can fail if two register classes
    don't have a common subclass or if the register class doesn't contain
    enough registers. Check the return value before trying to remove Phi nodes,
    and if we can't constrain, we output a COPY instead of simply replacing
    registers.

    Reviewers: kparzysz, david2050, wmi

    Reviewed By: kparzysz

    Subscribers: llvm-commits

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

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302622 91177308-0d34-0410-b5e6-96231b3b80

7 years agoInitial empty repository
Tizen Infrastructure [Fri, 7 Jul 2017 02:18:59 +0000 (02:18 +0000)]
Initial empty repository