[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Fri Aug 12 18:08:48 UTC 2016


The branch master has been updated
       via  ce7a2232f881e241515925bef13229656a0d6d58 (commit)
      from  721f3980236c397b0011088477f4568ac5f24cae (commit)


- Log -----------------------------------------------------------------
commit ce7a2232f881e241515925bef13229656a0d6d58
Author: Rich Salz <rsalz at 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 <steve at 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++;


More information about the openssl-commits mailing list