Skip to content

Commit e7419a3

Browse files
committed
add wireshark benchmark
1 parent ca6925a commit e7419a3

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2018 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
################################################################################
16+
17+
FROM gcr.io/oss-fuzz-base/base-builder@sha256:87ca1e9e19235e731fac8de8d1892ebe8d55caf18e7aa131346fc582a2034fdd
18+
19+
RUN apt-get update && \
20+
apt-get install -y \
21+
libstdc++-9-dev libstdc++-9-dev:i386 nasm subversion \
22+
gnupg lsb-release software-properties-common pkg-config \
23+
python3-pip libgtk-3-dev unzip pax-utils file cpio ninja-build cmake \
24+
libgcrypt20-dev libc-ares-dev libpcre2-dev flex inotify-tools \
25+
libboost-dev
26+
27+
RUN git clone \
28+
https://gitlab.com/wireshark/wireshark
29+
30+
WORKDIR wireshark
31+
COPY build.sh $SRC/
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
commit: 36a9f4231b3ee82bd4efee53ed8a1004ff90102d
2+
commit_date: 2023-11-11T01:07:51+00:00
3+
fuzz_target: fuzzshark
4+
project: wireshark
5+
unsupported_fuzzers:
6+
- aflcc
7+
- afl_qemu
8+
- aflplusplus_qemu
9+
- aflplusplus_qemu_tracepc
10+
- aflplusplus_frida
11+
- honggfuzz_qemu
12+
- klee
13+
- lafintel
14+
- weizz_qemu
15+
- aflplusplus_cmplog_double
16+
- symcc_aflplusplus_single
17+
- eclipser_aflplusplus
18+
- aflplusplus_qemu_double
19+
- fuzzolic_aflplusplus_z3
20+
- symqemu_aflplusplus
21+
- fuzzolic_aflplusplus_fuzzy
22+
- fuzzolic_aflplusplus_z3dict
23+
- tortoisefuzz
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#!/bin/bash -eu
2+
# Copyright 2018 Google Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
19+
mkdir seeds
20+
find . -name "*.pcap" -exec cp {} seeds \;
21+
cp -r seeds $OUT/
22+
23+
mkdir build
24+
cd build
25+
26+
cmake -G Ninja .. \
27+
-DENABLE_STATIC=ON \
28+
-DOSS_FUZZ=ON \
29+
-DINSTRUMENT_DISSECTORS_ONLY=ON \
30+
-DBUILD_fuzzshark=ON \
31+
-DBUILD_wireshark=OFF \
32+
-DBUILD_sharkd=OFF \
33+
-DENABLE_PCAP=OFF \
34+
-DENABLE_ZLIB=OFF \
35+
-DENABLE_MINIZIP=OFF \
36+
-DENABLE_LZ4=OFF \
37+
-DENABLE_BROTLI=OFF \
38+
-DENABLE_SNAPPY=OFF \
39+
-DENABLE_ZSTD=OFF \
40+
-DENABLE_NGHTTP2=OFF \
41+
-DENABLE_NGHTTP3=OFF \
42+
-DENABLE_LUA=OFF \
43+
-DENABLE_SMI=OFF \
44+
-DENABLE_GNUTLS=OFF \
45+
-DENABLE_NETLINK=OFF \
46+
-DENABLE_KERBEROS=OFF \
47+
-DENABLE_SBC=OFF \
48+
-DENABLE_SPANDSP=OFF \
49+
-DENABLE_BCG729=OFF \
50+
-DENABLE_AMRNB=OFF \
51+
-DENABLE_ILBC=OFF \
52+
-DENABLE_LIBXML2=OFF \
53+
-DENABLE_OPUS=OFF \
54+
-DENABLE_SINSP=OFF
55+
56+
ninja fuzzshark
57+
cp run/fuzzshark $OUT/fuzzshark
58+
export FUZZSHARK_TARGET="tcp"
59+

0 commit comments

Comments
 (0)