mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Skip non-existing files.
Reviewed-by: Rich Salz <rsalz@openssl.org> GH: #1324
This commit is contained in:
parent
5a3a546678
commit
abdb0c7b4e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user