crypto/txt_db/txt_db.c:171: error: BUFFER_OVERRUN_L3
  Offset added: [272, +oo] (⇐ [16, +oo] + [256, +oo]) Size: [1, +oo] by call to `lh_OPENSSL_STRING_insert`.
Showing all 14 steps of the trace


crypto/txt_db/txt_db.c:162:44: Call
160.       }
161.       /* FIXME: we lose type checking at this point */
162.       if ((idx = (LHASH_OF(OPENSSL_STRING) *)OPENSSL_LH_new(hash, cmp)) == NULL) {
                                                  ^
163.           db->error = DB_ERROR_MALLOC;
164.           return 0;

crypto/lhash/lhash.c:55:5: Assignment
  53.       ret->hash = ((h == NULL) ? (OPENSSL_LH_HASHFUNC)OPENSSL_LH_strhash : h);
  54.       ret->num_nodes = MIN_NODES / 2;
  55.       ret->num_alloc_nodes = MIN_NODES;
            ^
  56.       ret->pmax = MIN_NODES / 2;
  57.       ret->up_load = UP_LOAD;

crypto/txt_db/txt_db.c:171:18: Call
169.           if ((qual != NULL) && (qual(r) == 0))
170.               continue;
171.           if ((k = lh_OPENSSL_STRING_insert(idx, r)) != NULL) {
                        ^
172.               db->error = DB_ERROR_INDEX_CLASH;
173.               db->arg1 = sk_OPENSSL_PSTRING_find(db->data, k);

include/openssl/lhash.h:197:1: Parameter `lh->num_alloc_nodes`
  195.       LHASH_OF(type)
  196.   
  197. > DEFINE_LHASH_OF(OPENSSL_STRING);
  198.   # ifdef _MSC_VER
  199.   /*

include/openssl/lhash.h:197:1: Call
  195.       LHASH_OF(type)
  196.   
  197. > DEFINE_LHASH_OF(OPENSSL_STRING);
  198.   # ifdef _MSC_VER
  199.   /*

crypto/lhash/lhash.c:87:1: Parameter `lh->num_alloc_nodes`
    85.   }
    86.   
    87. > void *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data)
    88.   {
    89.       unsigned long hash;

crypto/lhash/lhash.c:94:77: Call
    92.   
    93.       lh->error = 0;
    94.       if ((lh->up_load <= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)) && !expand(lh))
                                                                                      ^
    95.           return NULL;        /* 'lh->error++' already done in 'expand' */
    96.   

crypto/lhash/lhash.c:203:1: <Offset trace>
201.   }
202.   
203. > static int expand(OPENSSL_LHASH *lh)
204.   {
205.       OPENSSL_LH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:203:1: Parameter `lh->num_alloc_nodes`
      201.   }
      202.   
      203. > static int expand(OPENSSL_LHASH *lh)
      204.   {
      205.       OPENSSL_LH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:209:5: Assignment
      207.       unsigned long hash;
      208.   
      209.       nni = lh->num_alloc_nodes;
                 ^
      210.       p = lh->p;
      211.       pmax = lh->pmax;

crypto/lhash/lhash.c:203:1: <Length trace>
201.   }
202.   
203. > static int expand(OPENSSL_LHASH *lh)
204.   {
205.       OPENSSL_LH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:203:1: Parameter `lh->num_alloc_nodes`
      201.   }
      202.   
      203. > static int expand(OPENSSL_LHASH *lh)
      204.   {
      205.       OPENSSL_LH_NODE **n, **n1, **n2, *np;

crypto/lhash/lhash.c:209:5: Assignment
      207.       unsigned long hash;
      208.   
      209.       nni = lh->num_alloc_nodes;
                 ^
      210.       p = lh->p;
      211.       pmax = lh->pmax;

crypto/lhash/lhash.c:220:9: Array access: Offset added: [272, +oo] (⇐ [16, +oo] + [256, +oo]) Size: [1, +oo] by call to `lh_OPENSSL_STRING_insert` 
      218.           }
      219.           lh->b = n;
      220.           memset(n + nni, 0, sizeof(*n) * (j - nni));
                     ^
      221.           lh->pmax = nni;
      222.           lh->num_alloc_nodes = j;
