Skip to content

Commit 4e4191b

Browse files
committed
test: Update fuzzer scripts to use latest afl
Issue: afl-gcc has been deprecated in v4.30 afl-cc doesn't understand some lwip comile flags afl-gcc-fast cannot be used to generate deps Fix: Use afl-gcc-fast for compilation, afl-cc for deps Note: Could use standard gcc for deps generation
1 parent 56b29f8 commit 4e4191b

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

test/fuzz/Makefile

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
22
# Copyright (c) 2001, 2002 Swedish Institute of Computer Science.
3-
# All rights reserved.
4-
#
5-
# Redistribution and use in source and binary forms, with or without modification,
3+
# All rights reserved.
4+
#
5+
# Redistribution and use in source and binary forms, with or without modification,
66
# are permitted provided that the following conditions are met:
77
#
88
# 1. Redistributions of source code must retain the above copyright notice,
@@ -11,29 +11,30 @@
1111
# this list of conditions and the following disclaimer in the documentation
1212
# and/or other materials provided with the distribution.
1313
# 3. The name of the author may not be used to endorse or promote products
14-
# derived from this software without specific prior written permission.
14+
# derived from this software without specific prior written permission.
1515
#
16-
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17-
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18-
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19-
# SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20-
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
21-
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24-
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
16+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17+
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18+
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19+
# SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
21+
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24+
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
2525
# OF SUCH DAMAGE.
2626
#
2727
# This file is part of the lwIP TCP/IP stack.
28-
#
28+
#
2929
# Author: Adam Dunkels <[email protected]>
3030
#
3131

3232
all compile: lwip_fuzz lwip_fuzz2 lwip_fuzz3
3333
.PHONY: all clean
3434

3535
ifeq ($(origin CC), default)
36-
CC=afl-gcc
36+
CC=afl-gcc-fast
37+
CCDEP=afl-cc
3738
endif
3839

3940
LDFLAGS=-lm

test/fuzz/output_to_pcap.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)