Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build tor fuzzing binaries with static libevent linkage #267

Merged
merged 2 commits into from
Jan 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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