The branch master has been updated via ce7a2232f881e241515925bef13229656a0d6d58 (commit) from 721f3980236c397b0011088477f4568ac5f24cae (commit)
- Log ----------------------------------------------------------------- commit ce7a2232f881e241515925bef13229656a0d6d58 Author: Rich Salz <rs...@openssl.org> Date: Fri Aug 12 14:04:53 2016 -0400 Check for bad filename in evp_test Thanks to Brian Carpter for reporting this. Reviewed-by: Dr. Stephen Henson <st...@openssl.org> ----------------------------------------------------------------------- Summary of changes: test/evp_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/evp_test.c b/test/evp_test.c index f820e25..a0dbffb 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -559,6 +559,10 @@ int main(int argc, char **argv) memset(&t, 0, sizeof(t)); t.start_line = -1; in = BIO_new_file(argv[1], "r"); + if (in == NULL) { + fprintf(stderr, "Can't open %s for reading\n", argv[1]); + return 1; + } t.in = in; while (BIO_gets(in, buf, sizeof(buf))) { t.line++; _____ openssl-commits mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits