From: Kurt Roeckx Date: Sat, 16 Jul 2016 19:45:34 +0000 (+0200) Subject: Skip non-existing files. X-Git-Tag: OpenSSL_1_1_0-pre6~70 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=abdb0c7b4ec73d6e94d4d8a0d6ee027e3b8db428;p=oweals%2Fopenssl.git Skip non-existing files. Reviewed-by: Rich Salz GH: #1324 --- diff --git a/fuzz/test-corpus.c b/fuzz/test-corpus.c index ccad369faf..c553697d6c 100644 --- a/fuzz/test-corpus.c +++ b/fuzz/test-corpus.c @@ -33,6 +33,8 @@ int main(int argc, char **argv) { stat(argv[n], &st); f = fopen(argv[n], "rb"); + if (f == NULL) + continue; buf = malloc(st.st_size); s = fread(buf, 1, st.st_size, f); OPENSSL_assert(s == (size_t)st.st_size);