From abdb0c7b4ec73d6e94d4d8a0d6ee027e3b8db428 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sat, 16 Jul 2016 21:45:34 +0200 Subject: [PATCH] Skip non-existing files. Reviewed-by: Rich Salz GH: #1324 --- fuzz/test-corpus.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.25.1