apps/x509.c:730: error: BUFFER_OVERRUN_S2
  Offset: `CAfile->strlen` Size: [0, +oo].
Showing all 8 steps of the trace


apps/x509.c:705:1: <Offset trace>
703.   	}
704.   
705. > static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
706.   	     X509 *x, X509 *xca, EVP_PKEY *pkey, char *serialfile, int create,
707.   	     int days)

apps/x509.c:705:1: Parameter `CAfile->strlen`
703.   	}
704.   
705. > static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
706.   	     X509 *x, X509 *xca, EVP_PKEY *pkey, char *serialfile, int create,
707.   	     int days)

apps/x509.c:723:21: <Length trace>
721.   
722.   	X509_STORE_CTX_init(&xsc,ctx,x,NULL);
723.   	buf=(char *)Malloc(EVP_PKEY_size(pkey)*2+
                           ^
724.   		((serialfile == NULL)
725.   			?(strlen(CAfile)+strlen(POSTFIX)+1)

apps/x509.c:723:21: Call
721.   
722.   	X509_STORE_CTX_init(&xsc,ctx,x,NULL);
723.   	buf=(char *)Malloc(EVP_PKEY_size(pkey)*2+
                           ^
724.   		((serialfile == NULL)
725.   			?(strlen(CAfile)+strlen(POSTFIX)+1)

crypto/evp/p_lib.c:92:3: Assignment
  90.   	{
  91.   	if (pkey == NULL)
  92.   		return(0);
          ^
  93.   #ifndef NO_RSA
  94.   	if (pkey->type == EVP_PKEY_RSA)

apps/x509.c:723:14: Array declaration
721.   
722.   	X509_STORE_CTX_init(&xsc,ctx,x,NULL);
723.   	buf=(char *)Malloc(EVP_PKEY_size(pkey)*2+
                    ^
724.   		((serialfile == NULL)
725.   			?(strlen(CAfile)+strlen(POSTFIX)+1)

apps/x509.c:723:2: Assignment
721.   
722.   	X509_STORE_CTX_init(&xsc,ctx,x,NULL);
723.   	buf=(char *)Malloc(EVP_PKEY_size(pkey)*2+
        ^
724.   		((serialfile == NULL)
725.   			?(strlen(CAfile)+strlen(POSTFIX)+1)

apps/x509.c:730:3: Array access: Offset: CAfile->strlen Size: [0, +oo]
728.   	if (serialfile == NULL)
729.   		{
730.   		strcpy(buf,CAfile);
         ^
731.   		for (p=buf; *p; p++)
732.   			if (*p == '.')
