Mike Aizatsky
f478dca0e8
[infra] SANITIZER environment variable ( #103 )
...
The variable picks one of the predefined flags configuration.
2016-12-02 10:58:51 -08:00
Mike Aizatsky
d92be61e1c
[infra] adding zip package, it is needed for corpuses
2016-11-18 20:52:41 -08:00
Mike Aizatsky
a27eca33a3
[infra] adding zip to base-runner: run_fuzzer needs it
2016-11-18 18:34:18 -08:00
Mike Aizatsky
0b58d66e89
[infra] moving test command into base-runner, using it on jenkins
2016-11-18 16:46:26 -08:00
Mike Aizatsky
487e9f4ed6
[infra] removing FUZZER_LDFLAGS ( fixes #73 )
...
Workarounds libc++abi issue by folding libc++abi.a into libc++.a.
Will keep FUZZER_LDFLAGS empty for a while until tpm2 is fixed.
2016-11-18 12:16:35 -08:00
Mike Aizatsky
3599908dbf
[infra] use $src, $out and $work in build scripts instead of /src, /out, /work ( #88 )
...
This will make it possible to run scripts outside of docker container.
2016-11-18 11:16:38 -08:00
Mike Aizatsky
e29ef5876d
rolling back trace pc guards
...
fuzzers fail with:
=================================================================
[1m[31m==18057==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000b8a144 at pc 0x0000007ae0ca bp 0x7fff2b91a4d0 sp 0x7fff2b91a4c8
[1m[0m[1m[34mWRITE of size 4 at 0x000000b8a144 thread T0[1m[0m
#0 0x7ae0c9 in fuzzer::TracePC::HandleInit(unsigned int*, unsigned int*) /src/libfuzzer/FuzzerTracePC.cpp:49:8
#1 0x7bcab9 in __sanitizer_cov_trace_pc_guard_init /src/libfuzzer/FuzzerTracePC.cpp:286:15
#2 0x5156bf in sancov.module_ctor (/out/curl_fuzzer+0x5156bf)
#3 0x88c1cc in __libc_csu_init (/out/curl_fuzzer+0x88c1cc)
#4 0x7f4ab7aed7be in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x207be)
#5 0x41fd78 in _start (/out/curl_fuzzer+0x41fd78)
2016-11-14 12:21:02 -08:00
Mike Aizatsky
c771c31753
switching to trace-pc-guard
2016-11-14 09:49:30 -08:00
Mike Aizatsky
43a5d34649
do not install unneded packages, they come from base-clang
2016-11-04 15:48:58 -07:00
Mike Aizatsky
48778facde
folding coverage into base-libfuzzer since target images is where sources are
2016-11-03 20:13:29 -07:00
Mike Aizatsky
e1a2d3c14c
[infra] .options support for run command ( #61 )
...
Initial work for #19 .
2016-11-02 16:02:17 -07:00
Mike Aizatsky
28dec3521c
[infra] adding zip to the image, since corpus files should be zips
2016-10-28 15:24:34 -07:00
Mike Aizatsky
43de5caa37
[infra] reproduce command ( #53 )
...
runs specified fuzzer with `/testcase` as input.
example:
```
docker run -v <local_file>:/testcase -t ossfuzz/libxml2 reproduce libxml2_xml_read_memory_fuzzer
```
2016-10-26 08:28:38 -07:00
Mike Aizatsky
6ccbe7f757
[infra] revisions->srcmap cleanup
2016-10-20 13:15:28 -07:00
Mike Aizatsky
20de8979b1
[infra] test command
2016-10-20 00:44:35 -07:00
Mike Aizatsky
9d54ccaeee
[infra] getting back to root user
2016-10-20 00:24:22 -07:00
Mike Aizatsky
4a1014636d
[infra] chown
2016-10-19 18:07:08 -07:00
Mike Aizatsky
0334615e51
[infra] determining source code revisions
2016-10-19 15:07:24 -07:00
Mike Aizatsky
f61b870b1c
libtool is needed to build libfuzzer.a
2016-10-19 11:42:57 -07:00
Mike Aizatsky
faecacb464
adding subversion
2016-10-19 11:34:58 -07:00
Mike Aizatsky
ea957bd4ee
[infra] checking out library sources in the image ( #40 )
...
fixes #33
2016-10-18 15:37:23 -07:00
Mike Aizatsky
941e47d6e1
[infra] renaming LDFLAGS into FUZZER_LDFLAGS. Fixes #31
2016-10-13 14:20:19 -07:00
Mike Aizatsky
dae2012980
[infra] do not checkout oss-fuzz ( #23 )
...
Promising oss-fuzz in /src/oss-fuzz creates lots of confusion about where files come from.
Let's make everything explicit.
Fixes #20
2016-10-12 16:25:06 -07:00
Mike Aizatsky
28e7afba10
[infra] run script
2016-10-10 14:16:48 -07:00
Mike Aizatsky
85dad5d52d
[infra] checkout command: automatic code checkout and compiling ( #11 )
2016-10-10 13:21:45 -07:00
Mike Aizatsky
e2ca7bcbe0
[infra] fixing build script location (/src/build.sh)
...
Fixing the location of build.sh gets rid of ENTRYPOINT. Which opens a possibility to implement different commands like:
````bash
docker run -ti expat compile
docker run -ti expat run <fuzzer_name> <input_data>
````
and keep the knowledge of build script location.
This is a breaking change.
2016-10-06 13:45:12 -07:00
Oliver Chang
8e4f09aaa6
Don't detect leaks in libfuzzer build images.
2016-09-29 13:18:39 -07:00
Mike Aizatsky
af93794f39
[infra] using whole-archive options
2016-08-11 15:42:21 -07:00
Mike Aizatsky
69110e1f33
[infra] no need to call /env
2016-08-07 19:53:25 -07:00
Mike Aizatsky
a4b1f6c2a5
[infra] moved env variables into Dockerfiles
2016-08-06 11:11:39 -07:00
Mike Aizatsky
f1b094b16a
[infra] removing workspace directory
2016-08-01 14:15:43 -07:00
Mike Aizatsky
0dd9848893
[infra] docker images nits
2016-07-27 16:07:07 -07:00
Mike Aizatsky
e0b3abddf8
[infra] checking out oss-fuzz into base-libfuzzer
2016-07-25 22:38:54 -07:00
Mike Aizatsky
50a790b896
[infra] removing build artifacts after installation
2016-07-22 13:24:49 -07:00
Mike Aizatsky
3fa412a17c
[infra] more dockerfiles tweaks
2016-07-21 14:10:04 -07:00
Mike Aizatsky
06a204d5cd
[infra] docker files cleanup
2016-07-21 13:51:01 -07:00
Mike Aizatsky
95bddce1ae
[infra] renaming base-fuzzer into base-libfuzzer image.
2016-07-20 17:16:57 -07:00