Use correct dictionary file format.

Also use the new dictionaries in the Makefile fuzz target.
This commit is contained in:
Todd C. Miller
2022-12-30 11:26:49 -07:00
parent 224a3b6470
commit ad55f8ccee
3 changed files with 119 additions and 119 deletions

View File

@@ -238,7 +238,7 @@ run-fuzz_iolog_legacy: fuzz_iolog_legacy
for f in $(FUZZ_IOLOG_LEGACY_CORPUS); do \ for f in $(FUZZ_IOLOG_LEGACY_CORPUS); do \
cp $$f $$corpus; \ cp $$f $$corpus; \
done; \ done; \
./fuzz_iolog_legacy -max_len=$(FUZZ_MAX_LEN) -runs=$(FUZZ_RUNS) $(FUZZ_VERBOSE) $$corpus ./fuzz_iolog_legacy -dict=$(srcdir)/regress/fuzz/fuzz_iolog_legacy.dict -max_len=$(FUZZ_MAX_LEN) -runs=$(FUZZ_RUNS) $(FUZZ_VERBOSE) $$corpus
fuzz_iolog_timing_seed_corpus.zip: fuzz_iolog_timing_seed_corpus.zip:
tdir=fuzz_iolog_timing.$$$$; \ tdir=fuzz_iolog_timing.$$$$; \
@@ -263,7 +263,7 @@ run-fuzz_iolog_timing: fuzz_iolog_timing
for f in $(FUZZ_IOLOG_TIMING_CORPUS); do \ for f in $(FUZZ_IOLOG_TIMING_CORPUS); do \
cp $$f $$corpus; \ cp $$f $$corpus; \
done; \ done; \
./fuzz_iolog_timing -max_len=$(FUZZ_MAX_LEN) -runs=$(FUZZ_RUNS) $(FUZZ_VERBOSE) $$corpus ./fuzz_iolog_timing -dict=$(srcdir)/regress/fuzz/fuzz_iolog_timing.dict -max_len=$(FUZZ_MAX_LEN) -runs=$(FUZZ_RUNS) $(FUZZ_VERBOSE) $$corpus
pre-install: pre-install:

View File

@@ -2,41 +2,41 @@
# timestamp:submit_user:run_user:run_group:tty:lines:columns # timestamp:submit_user:run_user:run_group:tty:lines:columns
# working directory # working directory
# command [args] # command [args]
#
# users and groups # users and groups
millert "millert"
root "root"
bin "bin"
wheel "wheel"
operator "operator"
testuser "testuser"
alice "alice"
bob "bob"
users "users"
#
# terminals # terminals
/dev/console "/dev/console"
/dev/tty00 "/dev/tty00"
/dev/tty01 "/dev/tty01"
/dev/pts/0 "/dev/pts/0"
/dev/pts/1 "/dev/pts/1"
/dev/ttyp2 "/dev/ttyp2"
/dev/ttyp3 "/dev/ttyp3"
#
# directories # directories
/root "/root"
/home/millert "/home/millert"
/home/alice "/home/alice"
/home/bob "/home/bob"
/tmp "/tmp"
/usr/local "/usr/local"
/usr/src "/usr/src"
#
# commands # commands
/bin/ls "/bin/ls"
/usr/bin/id -u "/usr/bin/id -u"
/usr/bin/su - "/usr/bin/su -"
/usr/bin/mailq "/usr/bin/mailq"
/usr/bin/make -C /usr/src/usr.bin/sort install "/usr/bin/make -C /usr/src/usr.bin/sort install"
/usr/bin/apt update "/usr/bin/apt update"
/usr/bin/rpm -e sudo "/usr/bin/rpm -e sudo"

View File

@@ -2,88 +2,88 @@
# [0-4] sleep_time num_bytes # [0-4] sleep_time num_bytes
# 5 sleep_time lines cols # 5 sleep_time lines cols
# 7 sleep_time signum|sigabbrev # 7 sleep_time signum|sigabbrev
#
# Signal abbreviations # Signal abbreviations
ABRT "ABRT"
ALRM "ALRM"
BUS "BUS"
CANCEL "CANCEL"
CHLD "CHLD"
CLD "CLD"
CONT "CONT"
CONT "CONT"
EMT "EMT"
FPE "FPE"
FREEZE "FREEZE"
HUP "HUP"
ILL "ILL"
INFO "INFO"
INT "INT"
IO "IO"
IOT "IOT"
KILL "KILL"
LOST "LOST"
LWP "LWP"
PIPE "PIPE"
POLL "POLL"
PROF "PROF"
PWR "PWR"
QUIT "QUIT"
SEGV "SEGV"
STKFLT "STKFLT"
STOP "STOP"
STOP "STOP"
SYS "SYS"
TERM "TERM"
THAW "THAW"
TRAP "TRAP"
TSTP "TSTP"
TSTP "TSTP"
TTIN "TTIN"
TTIN "TTIN"
TTOU "TTOU"
TTOU "TTOU"
UNUSED "UNUSED"
URG "URG"
USR1 "USR1"
USR2 "USR2"
VTALRM "VTALRM"
WAITING "WAITING"
WINCH "WINCH"
XCPU "XCPU"
XFSZ "XFSZ"
#
# Signal numbers, 0-32 # Signal numbers, 0-32
0 "0"
1 "1"
2 "2"
3 "3"
4 "4"
5 "5"
6 "6"
7 "7"
8 "8"
9 "9"
10 "10"
11 "11"
12 "12"
13 "13"
14 "14"
15 "15"
16 "16"
17 "17"
18 "18"
19 "19"
20 "20"
21 "21"
22 "22"
23 "23"
24 "24"
25 "25"
26 "26"
27 "27"
28 "28"
29 "29"
30 "30"
31 "31"
32 "32"