]> git.ipfire.org Git - thirdparty/zstd.git/commit
[fuzz] Fix regression_driver.c with directory input (#1944)
authorNick Terrell <terrelln@fb.com>
Wed, 8 Jan 2020 21:20:56 +0000 (13:20 -0800)
committerGitHub <noreply@github.com>
Wed, 8 Jan 2020 21:20:56 +0000 (13:20 -0800)
commitb77ad810c9bd7b33be22ff5e4d317d275496603c
tree2efe6b8e43124483cef7e194e609c543754b6e24
parentd0dcaf56c23d5691625b0b02ff106f08baa79f9c
[fuzz] Fix regression_driver.c with directory input (#1944)

The `numFiles` variable wasn't updated, so the fuzzer didn't do anything.
I did two things to fix this:

1. Remove the `numFiles` variable entirely.
2. Error if we can't open a file and print the number of files tested.
tests/fuzz/regression_driver.c