Increase the password buffer size to APP_PASS_LEN.
authorPauli <paul.dale@oracle.com>
Tue, 7 Mar 2017 00:12:05 +0000 (10:12 +1000)
committerPauli <paul.dale@oracle.com>
Tue, 7 Mar 2017 00:12:05 +0000 (10:12 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2868)

apps/pkcs8.c

index e12c5d3..7ee23a2 100644 (file)
@@ -66,7 +66,7 @@ int pkcs8_main(int argc, char **argv)
     char *infile = NULL, *outfile = NULL;
     char *passinarg = NULL, *passoutarg = NULL, *prog;
 #ifndef OPENSSL_NO_UI
-    char pass[50];
+    char pass[APP_PASS_LEN];
 #endif
     char *passin = NULL, *passout = NULL, *p8pass = NULL;
     OPTION_CHOICE o;