apps/s_client.c:2586: error: BUFFER_OVERRUN_L2
  Offset: [-oo, 1048576] Size: 8192 by call to `X509_NAME_oneline`.
Showing all 6 steps of the trace


apps/s_client.c:2560:1: Array declaration
2558.   }
2559.   
2560. > static void print_stuff(BIO *bio, SSL *s, int full)
2561.   {
2562.       X509 *peer = NULL;

apps/s_client.c:2586:17: Call
2584.               BIO_printf(bio, "---\nCertificate chain\n");
2585.               for (i = 0; i < sk_X509_num(sk); i++) {
2586.                   X509_NAME_oneline(X509_get_subject_name(sk_X509_value(sk, i)),
                        ^
2587.                                     buf, sizeof buf);
2588.                   BIO_printf(bio, "%2d s:%s\n", i, buf);

crypto/x509/x509_obj.c:73:1: <Length trace>
71.   #define NAME_ONELINE_MAX    (1024 * 1024)
72.   
73. > char *X509_NAME_oneline(X509_NAME *a, char *buf, int len)
74.   {
75.       X509_NAME_ENTRY *ne;

crypto/x509/x509_obj.c:73:1: Parameter `*buf`
  71.   #define NAME_ONELINE_MAX    (1024 * 1024)
  72.   
  73. > char *X509_NAME_oneline(X509_NAME *a, char *buf, int len)
  74.   {
  75.       X509_NAME_ENTRY *ne;

crypto/x509/x509_obj.c:181:13: Assignment
  179.               break;
  180.           } else
  181.               p = &(buf[lold]);
                     ^
  182.           *(p++) = '/';
  183.           memcpy(p, s, (unsigned int)l1);

crypto/x509/x509_obj.c:182:9: Array access: Offset: [-oo, 1048576] Size: 8192 by call to `X509_NAME_oneline` 
  180.           } else
  181.               p = &(buf[lold]);
  182.           *(p++) = '/';
                 ^
  183.           memcpy(p, s, (unsigned int)l1);
  184.           p += l1;
