Skip to content

Commit

Permalink
Build tor fuzzing binaries with static libevent linkage (#267)
Browse files Browse the repository at this point in the history
* Remove true && true &&...

Don't ask.

* Link libevent statically in tor build.sh
  • Loading branch information
nmathewson authored and kcc committed Jan 10, 2017
1 parent da92a7d commit 3d351a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/tor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
FROM ossfuzz/base-builder
MAINTAINER [email protected]
RUN apt-get install -y zlib1g zlib1g-dev libevent-dev libevent-2.0 openssl autoconf automake libssl-dev make libc++-dev
RUN true && true && true && true && true && git clone https://git.torproject.org/nickm/tor.git -b combined-fuzzing-v3
RUN git clone https://git.torproject.org/nickm/tor.git -b combined-fuzzing-v3
RUN git clone https:/nmathewson/tor-fuzz-corpora.git
WORKDIR tor
COPY build.sh $SRC/
2 changes: 1 addition & 1 deletion projects/tor/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TORLIBS="$TORLIBS src/common/libor-testing.a"
TORLIBS="$TORLIBS src/common/libor-ctime-testing.a"
TORLIBS="$TORLIBS src/common/libor-event-testing.a"
TORLIBS="$TORLIBS src/trunnel/libor-trunnel-testing.a"
TORLIBS="$TORLIBS -lz -lm -levent -lssl -lcrypto"
TORLIBS="$TORLIBS -lz -lm -lssl -lcrypto -Wl,-Bstatic -levent -Wl,-Bdynamic"

for fuzzer in src/test/fuzz/*.a; do
output="${fuzzer%.a}"
Expand Down

0 comments on commit 3d351a0

Please sign in to comment.