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)
committerRich Salz <rsalz@openssl.org>
Tue, 7 Mar 2017 01:29:49 +0000 (20:29 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2868)
(cherry picked from commit bf580d5f30368f7ebc4c44f10575b5f0b411d594)

apps/pkcs8.c

index 93ffdd55e8586f3bf01b43540757075926059c0d..4b3fa10d23ecc7f700952bf81aac02ef17432062 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;