Commit Graph

1995 Commits

Author SHA1 Message Date
Oliver Chang 58d8b58cfb msan_builder: Make --build-deps the default, add option for creating subdirs in output. 2017-12-06 17:45:51 -08:00
Matt Kwong a8f9c1ab8f [gRPC] Update Bazel submodules (#1027) 2017-12-06 17:08:40 -08:00
Oliver Chang 12f1d9dc73 msan_builder: Add some helpers for creating wrappers, and fix systemd build. 2017-12-06 15:52:36 -08:00
Oliver Chang 7c7b54edda msan_builder: Improve -Wl,defs detection and removal.
Also write tests.
2017-12-05 14:06:57 -08:00
Even Rouault b5c3772bf3 [gdal] Add new GDAL contributor (#1021) 2017-12-05 13:33:43 -08:00
Oliver Chang 4ff18cdd15 msan_builder: various fixes.
- Do parallel build.
- Fix apt dependencies.
- Make msan report suppression better:
    - Use report_umrs option instead to suppress reports.
    - Use log_path to suppress the remainder of output (i.e. MSan report
      summaries).
- Increase stack size limit to avoid test failures during builds.
- Don't set nostrip in DEB_BUILD_OPTIONS. libpcre3 doesn't build
  properly with it because its build rules are wrong.
2017-12-05 13:03:14 -08:00
Oliver Chang 6a4d0f864c msan_builder: Inject MSan flags in wrapper if they don't exist.
Some packages build test binaries that don't use DEB_C(XX)FLAGS and fail
during linking.
2017-12-04 14:51:21 -08:00
Oliver Chang f402826092 msan_builder: remove unused import. 2017-12-04 14:32:11 -08:00
Oliver Chang ad476b52db msan_builder: collect and build dependencies.
Use python-apt to get dependencies. Also change source downloading to
use this module.
2017-12-04 14:30:51 -08:00
Kostya Serebryany 0b3f8b3a29
first toy variant of fuzzing for AOSP (#1016)
* first toy variant of fuzzing for AOSP

* update e-mail, fix a typo

* update e-mail
2017-12-04 12:54:32 -08:00
Oliver Chang 4af6f53266 msan_builder: support installing multiple packages at once.
Also, only install the built .deb packages that match the requested
package names.
2017-12-04 12:35:43 -08:00
Caolán McNamara 30e6c0b8bd add mathtype corpus (#1019) 2017-12-04 08:07:04 -08:00
Caolán McNamara 4078427d46 [libreoffice] add mml corpus (#1017) 2017-11-30 12:48:06 -08:00
Caolán McNamara ef243e28aa add pptx corpus (#1015)
and update dependency cache
2017-11-29 09:12:44 -08:00
Caolán McNamara 06eeccc7d4 add xlsx corpus (#1013)
and update dependency cache
2017-11-29 06:16:11 -08:00
Oliver Chang b5b5a2fb18 [infra] msan_builder: Preserve directory structure of libraries and patch rpaths. 2017-11-27 21:45:34 -08:00
Oliver Chang e3e7c02725 [infra] msan_builder: Add custom build hooks.
Add one for pulseaudio on xenial. ubuntu patches causes build failures
with recent clang.
2017-11-27 14:52:20 -08:00
Roman Lebedev dec4d4272f [librawspeed] Undefined Sanitizer: enable unsigned-integer-overflow detection. (#1011)
As discussed in https://github.com/google/oss-fuzz/issues/682#issuecomment-347236010
2017-11-27 11:23:07 -08:00
David Tardon 43f8f7dfa5 enable MSan for dlplibs (#1010) 2017-11-27 07:23:25 -08:00
Alex Gaynor d22048a3b5 Build spidermonkey in parallel (#1005) 2017-11-23 13:12:37 -08:00
Caolán McNamara 727b1dd64f add docx corpus (#1006)
and update dependency cache
2017-11-23 13:12:22 -08:00
Oliver Chang 838e4c4d0d [infra] msan builder: one more variation of -Wl,-z,defs 2017-11-22 16:22:36 -08:00
Oliver Chang d55fcf47e7 [infra] msan builder: don't strip. 2017-11-22 14:26:44 -08:00
Oliver Chang a023ed88c7 [infra] msan builder: wrap dpkg-gensymbols. 2017-11-22 14:01:06 -08:00
Oliver Chang 0b44a69baf [infra] msan builder: disable all warnings. 2017-11-22 13:37:02 -08:00
Oliver Chang 5ccbcb82b4 [infra] More msan builder fixes.
- Removing -Wl,-z,defs doesn't always work, since they can be passed as
  -Wl,-z -Wl,defs instead.
- Add more debugging functionality.
2017-11-22 13:13:30 -08:00
Oliver Chang 308be48767 [infra] msan builder: don't print anything extra at all in compiler wrapper.
configure scripts can test for output to stderr as an indication of
error.
2017-11-22 10:14:47 -08:00
Oliver Chang 7653ee8b69 [infra] msan builder fixes.
- wrapper: print actual clang invocation to stderr instead.
- add -fPIC -fno-omit-frame-pointer to c/cxxflags
- replace -g with -gline-tables-only
2017-11-22 09:34:58 -08:00
Oliver Chang b03a098eeb
Initial MSan library builder script. (#1004) 2017-11-21 09:47:51 -08:00
Robin Alexander Richtsfeld 2dfd739d38 Clean Shell Scripts (#999)
* Clean all.sh

Double quote array expansions, otherwise they're like $* and break on spaces.

* Clean dropbear/build.sh

In POSIX sh, 'pushd' is not supported.
In POSIX sh, 'popd' is not supported.

* Clean woff2/build.sh

Iterating over ls output is fragile. Use globs.

* Clean tinyxml2/build.sh

Add shebang
2017-11-20 12:22:57 -08:00
Joshua Haberman 329e9eafb4 Added Bloaty McBloatface as an oss-fuzz project. (#1000)
* Added Bloaty McBloatface as an oss-fuzz project.

* Added fuzz corpus for Bloaty.
2017-11-20 08:01:08 -08:00
David Tardon 337187317e ofz#4303 fix another signed int overflow in boost (#996) 2017-11-18 07:24:47 -08:00
David Tardon 0a2b9c224c source repos are not needed anymore (#995) 2017-11-18 07:23:57 -08:00
Roman Lebedev 430a173d1a RawSpeed: fix build. (#997)
During introduction of more fuzz targets, i did some CMake cleanup,
namely adding of helper library. And unfortunately i did not think
about the LIB_FUZZING_ENGINE env variable, thus the oss-fuzz build
has failed.

So some more cleanup was needed
(darktable-org/rawspeed@986d605935),
and as the consequences, this small build.sh change is needed too.

I did check locally, this does fix the build.
Please merge :)
2017-11-18 07:21:59 -08:00
Varun Khaneja 6b302b9e61 Use same filename for the input file created in disk (#994)
* Use the same file name always to avoid creating new files

* Minor: formatting changes

* Use PID for the filename
2017-11-17 14:47:43 -08:00
Oliver Chang e68fd86c32
[jsc] Add more CCs 2017-11-17 14:46:15 -08:00
Matt Kwong 373c1e4c11 Compile fuzzers with Clang++ (#993) 2017-11-16 21:50:18 -08:00
Nikos Mavrogiannopoulos 2c04c55f62 added Niels from nettle, to be able to inspect logs (#987)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
2017-11-16 07:07:17 -08:00
David Tardon 4039e9864b ubsan fix for bundled boost (#988)
* bundle mdds

* bundle boost

* ofz#2894 fix int overflow in boost
2017-11-16 07:07:02 -08:00
Varun Khaneja 5cd4d6189d [unrar] Use github repo to fetch code and remove extra dependencies (#985) 2017-11-15 14:23:37 -08:00
Max Moroz 6204899516
[infra] Use "-fsanitize=fuzzer-no-link" instead of coverage flags. (#975) 2017-11-14 07:32:06 -08:00
EdMaurer f0239ca230 use new ChakraCoreEng@microsoft.com email address (#984)
use ChakraCoreEng@ms.com instead of ChakraCore@ms.com which folks use for social media comms.
2017-11-13 20:02:01 -08:00
Kostya Serebryany 95e75738d1
llvm: add llvm-opt-fuzzer--x86_64-instcombine 2017-11-13 14:43:56 -08:00
David Tardon 0bc454039f fixes for bundled ICU (#983)
* update bundled libs

* apply ICU ubsan patch from libreoffice

This fixes a few things that are not real problems but ubsan doesn't
like them, e.g., ofz#3926 .

* ofz#3670 fix heap-buffer overflow in ICU
2017-11-13 13:46:46 -08:00
VZ 5c93c1ce19 Include submodules in wxWidgets checkout (#982)
Third party libraries are now submodules and not subdirectories, so
clone them too.
2017-11-13 10:54:36 -08:00
Varun Khaneja 44ac124768 Setup simple fuzzing for unrar. (#951)
* Get the shared library to build for unrar

* Fuzz by writing temp file and calling CmdExtract::DoExtract()

* Incorporate review feedback

* Incorporate review feedback
2017-11-13 10:48:31 -08:00
Caolán McNamara 5830f0d420 [docs] update standalone driver link (#979) 2017-11-13 07:48:42 -08:00
Abhishek Arya 259cb3849d
Increase build timeout to 10 hours (fix #978) 2017-11-12 19:40:27 -08:00
Tim Rühsen 21d1a4cfe6 [wget2] Install lzip and rsync (#976) 2017-11-11 18:47:10 -08:00
Caolán McNamara 0e6b154f09 enable ofz engine for libreoffice (#974)
Enable AFL engine for libreoffice
2017-11-10 12:33:47 -08:00