]> granicus.if.org Git - openssl/commitdiff
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 e12c5d36cd8df473f2d64dfeb2e3a0a5a4d0e0d5..7ee23a22158656866281ce7c2c236d2746201bd2 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;