Check-in [abedee59bf]
Overview
Comment:More inputs to AFL
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: abedee59bfa38d30d391cb9eb7c79c7d42641d58
User & Date: rkeene on 2020-04-02 15:49:33
Other Links: manifest | tags
Context
2020-04-21
13:12
Close cache file if we cannot duplicate it Leaf check-in: 457d68de44 user: rkeene tags: trunk
2020-04-02
15:49
More inputs to AFL check-in: abedee59bf user: rkeene tags: trunk
2020-04-01
19:03
Ensure that pthread condition variable in logging is initialized check-in: f278a98272 user: rkeene tags: trunk
Changes

Modified build/test-afl from [fd2b240781] to [cb7694cf17].

33
34
35
36
37
38
39


40
41
42
43
44
45
46
47
48
49
(
	set -e

	cd "${workdir}"
	mkdir "${inputdir}" "${outputdir}"

	echo $'GET /etc/passwd HTTP/1.1\x0d\x0aHost: example.com\x0d\x0a\x0d\x0a' > input/test-1



	cd 'src'
	make distclean
	make CC=afl-gcc FILED_EXTRA_CFLAGS=-DFILED_TEST_AFL=1

	#export AFL_SKIP_CPUFREQ=1
	afl-fuzz -i "${inputdir}" -o "${outputdir}" -- ./filed
)

exit 0







>
>










33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
(
	set -e

	cd "${workdir}"
	mkdir "${inputdir}" "${outputdir}"

	echo $'GET /etc/passwd HTTP/1.1\x0d\x0aHost: example.com\x0d\x0a\x0d\x0a' > input/test-1
	echo $'GET / HTTP/1.1\x0d\x0aHost: example.com\x0d\x0a\x0d\x0a' > input/test-2
	echo $'GET / HTTP/1.1\x0d\x0aHost:\x0d\x0a\x0d\x0a' > input/test-3

	cd 'src'
	make distclean
	make CC=afl-gcc FILED_EXTRA_CFLAGS=-DFILED_TEST_AFL=1

	#export AFL_SKIP_CPUFREQ=1
	afl-fuzz -i "${inputdir}" -o "${outputdir}" -- ./filed
)

exit 0