Use less verbose / operator instead of DirSep

This commit is contained in:
kdeme 2019-10-02 13:11:07 +02:00 committed by zah
parent 2a0793ce60
commit eb4aee0260
1 changed files with 2 additions and 4 deletions

View File

@ -83,13 +83,11 @@ proc runFuzzer*(targetPath: string, fuzzer: Fuzzer) =
case fuzzer case fuzzer
of afl: of afl:
aflCompile(targetPath, gcc) aflCompile(targetPath, gcc)
aflExec(path & DirSep & target, aflExec(path / target, path / "input", path / "results")
path & DirSep & "input",
path & DirSep & "results")
of libFuzzer: of libFuzzer:
libFuzzerCompile(targetPath) libFuzzerCompile(targetPath)
# Note: Lets not mix afl input with libFuzzer corpus default. This can have # Note: Lets not mix afl input with libFuzzer corpus default. This can have
# consequences on speed for afl. Better to look into merging afl results & # consequences on speed for afl. Better to look into merging afl results &
# libFuzzer corpus. # libFuzzer corpus.
libFuzzerExec(path & DirSep & target, path & DirSep & "corpus") libFuzzerExec(path / target, path / "corpus")