crypto/txt_db/txt_db.c:216: error: BUFFER_OVERRUN_L3
  Offset: [16, +oo] Size: [1, +oo] by call to `lh_OPENSSL_STRING_insert`.
Showing all 16 steps of the trace


crypto/txt_db/txt_db.c:207:44: Call
205.       }
206.       /* FIXME: we lose type checking at this point */
207.       if ((idx = (LHASH_OF(OPENSSL_STRING) *)lh_new(hash, cmp)) == NULL) {
                                                  ^
208.           db->error = DB_ERROR_MALLOC;
209.           return (0);

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;

crypto/txt_db/txt_db.c:216:18: Call
214.           if ((qual != NULL) && (qual(r) == 0))
215.               continue;
216.           if ((r = lh_OPENSSL_STRING_insert(idx, r)) != NULL) {
                        ^
217.               db->error = DB_ERROR_INDEX_CLASH;
218.               db->arg1 = sk_OPENSSL_PSTRING_find(db->data, r);

include/openssl/lhash.h:269:1: Parameter `lh->num_alloc_nodes`
  267.     lh_doall_arg(CHECKED_LHASH_OF(type, lh), fn, CHECKED_PTR_OF(arg_type, arg))
  268.   
  269. > DEFINE_LHASH_OF(OPENSSL_STRING);
  270.   DEFINE_LHASH_OF(OPENSSL_CSTRING);
  271.   

include/openssl/lhash.h:269:1: Call
  267.     lh_doall_arg(CHECKED_LHASH_OF(type, lh), fn, CHECKED_PTR_OF(arg_type, arg))
  268.   
  269. > DEFINE_LHASH_OF(OPENSSL_STRING);
  270.   DEFINE_LHASH_OF(OPENSSL_CSTRING);
  271.   

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_OPENSSL_STRING_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;
