ssl/ssl_cert.c:695: error: BUFFER_OVERRUN_L3
  Offset: [16, +oo] Size: [1, +oo] by call to `lh_X509_NAME_insert`.
Showing all 17 steps of the trace


ssl/ssl_cert.c:665:9: Call
663.       STACK_OF(X509_NAME) *ret = NULL;
664.       LHASH_OF(X509_NAME) *name_hash =
665.           lh_X509_NAME_new(xname_hash, xname_cmp);
               ^
666.   
667.       if ((name_hash == NULL) || (in == NULL)) {

ssl/ssl_locl.h:683:1: Call
  681.   DEFINE_LHASH_OF(SSL_SESSION);
  682.   /* Needed in ssl_cert.c */
  683. > DEFINE_LHASH_OF(X509_NAME);
  684.   
  685.   struct ssl_ctx_st {

crypto/lhash/lhash.c:123:5: Assignment
    121.       ret->hash = ((h == NULL) ? (LHASH_HASH_FN_TYPE)lh_strhash : h);
    122.       ret->num_nodes = MIN_NODES / 2;
    123.       ret->num_alloc_nodes = MIN_NODES;
               ^
    124.       ret->pmax = MIN_NODES / 2;
    125.       ret->up_load = UP_LOAD;

ssl/ssl_cert.c:695:13: Call
693.               X509_NAME_free(xn);
694.           } else {
695.               lh_X509_NAME_insert(name_hash, xn);
                   ^
696.               sk_X509_NAME_push(ret, xn);
697.           }

ssl/ssl_locl.h:683:1: Parameter `lh->num_alloc_nodes`
  681.   DEFINE_LHASH_OF(SSL_SESSION);
  682.   /* Needed in ssl_cert.c */
  683. > DEFINE_LHASH_OF(X509_NAME);
  684.   
  685.   struct ssl_ctx_st {

ssl/ssl_locl.h:683:1: Call
  681.   DEFINE_LHASH_OF(SSL_SESSION);
  682.   /* Needed in ssl_cert.c */
  683. > DEFINE_LHASH_OF(X509_NAME);
  684.   
  685.   struct ssl_ctx_st {

crypto/lhash/lhash.c:155:1: Parameter `lh->num_alloc_nodes`
    153.   }
    154.   
    155. > void *lh_insert(_LHASH *lh, void *data)
    156.   {
    157.       unsigned long hash;

crypto/lhash/lhash.c:163:9: Call
    161.       lh->error = 0;
    162.       if (lh->up_load <= (lh->num_items * LH_LOAD_MULT / lh->num_nodes))
    163.           expand(lh);
                   ^
    164.   
    165.       rn = getrn(lh, data, &hash);

crypto/lhash/lhash.c:278:1: <Offset trace>
276.   }
277.   
278. > static void expand(_LHASH *lh)
279.   {
280.       LHASH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:278:1: Parameter `lh->num_alloc_nodes`
      276.   }
      277.   
      278. > static void expand(_LHASH *lh)
      279.   {
      280.       LHASH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:304:9: Assignment
      302.   
      303.       if ((lh->p) >= lh->pmax) {
      304.           j = (int)lh->num_alloc_nodes * 2;
                     ^
      305.           n = OPENSSL_realloc(lh->b, (int)(sizeof(LHASH_NODE *) * j));
      306.           if (n == NULL) {

crypto/lhash/lhash.c:278:1: <Length trace>
276.   }
277.   
278. > static void expand(_LHASH *lh)
279.   {
280.       LHASH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:278:1: Parameter `*lh->b`
      276.   }
      277.   
      278. > static void expand(_LHASH *lh)
      279.   {
      280.       LHASH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:305:13: Call
      303.       if ((lh->p) >= lh->pmax) {
      304.           j = (int)lh->num_alloc_nodes * 2;
      305.           n = OPENSSL_realloc(lh->b, (int)(sizeof(LHASH_NODE *) * j));
                         ^
      306.           if (n == NULL) {
      307.               /* fputs("realloc error in lhash",stderr); */

crypto/mem.c:178:9: Assignment
        176.       if (num == 0) {
        177.           CRYPTO_free(str, file, line);
        178.           return NULL;
                       ^
        179.       }
        180.   

crypto/lhash/lhash.c:305:9: Assignment
      303.       if ((lh->p) >= lh->pmax) {
      304.           j = (int)lh->num_alloc_nodes * 2;
      305.           n = OPENSSL_realloc(lh->b, (int)(sizeof(LHASH_NODE *) * j));
                     ^
      306.           if (n == NULL) {
      307.               /* fputs("realloc error in lhash",stderr); */

crypto/lhash/lhash.c:313:13: Array access: Offset: [16, +oo] Size: [1, +oo] by call to `lh_X509_NAME_insert` 
      311.           }
      312.           for (i = (int)lh->num_alloc_nodes; i < j; i++) /* 26/02/92 eay */
      313.               n[i] = NULL;        /* 02/03/92 eay */
                         ^
      314.           lh->pmax = lh->num_alloc_nodes;
      315.           lh->num_alloc_nodes = j;
