crypto/err/err.c:396: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `lh_delete`.
Showing all 4 steps of the trace


crypto/err/err.c:396:25: Call
394.   
395.   	CRYPTO_w_lock(CRYPTO_LOCK_ERR);
396.   	p = (ERR_STRING_DATA *)lh_delete(hash, d);
                               ^
397.   	CRYPTO_w_unlock(CRYPTO_LOCK_ERR);
398.   

crypto/lhash/lhash.c:217:1: <LHS trace>
215.   	}
216.   
217. > void *lh_delete(LHASH *lh, const void *data)
218.   	{
219.   	unsigned long hash;

crypto/lhash/lhash.c:217:1: Parameter `lh->num_items`
  215.   	}
  216.   
  217. > void *lh_delete(LHASH *lh, const void *data)
  218.   	{
  219.   	unsigned long hash;

crypto/lhash/lhash.c:240:2: Binary operation: ([0, +oo] - 1):unsigned64 by call to `lh_delete` 
  238.   		}
  239.   
  240.   	lh->num_items--;
          ^
  241.   	if ((lh->num_nodes > MIN_NODES) &&
  242.   		(lh->down_load >= (lh->num_items*LH_LOAD_MULT/lh->num_nodes)))

void *lh_delete(LHASH *lh, const void *data)
	{
	unsigned long hash;
	LHASH_NODE *nn,**rn;
	const void *ret;
	lh->error=0;
	rn=getrn(lh,data,&hash);
	if (*rn == NULL)
		{
		lh->num_no_delete++;
		return(NULL);
		}
	else
		{
		nn= *rn;
		*rn=nn->next;
		ret=nn->data;
		OPENSSL_free(nn);
		lh->num_delete++;
		}
	lh->num_items--;
	if ((lh->num_nodes > MIN_NODES) &&
		(lh->down_load >= (lh->num_items*LH_LOAD_MULT/lh->num_nodes)))
		contract(lh);
	return((void *)ret);
	}
['static ERR_STRING_DATA *int_err_del_item(ERR_STRING_DATA *d)\n\t{\n\tERR_STRING_DATA *p;\n\tLHASH *hash;\n\terr_fns_check();\n\thash = ERRFN(err_get)();\n\tif (!hash)\n\t\treturn NULL;\n\tCRYPTO_w_lock(CRYPTO_LOCK_ERR);\n\tp = (ERR_STRING_DATA *)lh_delete(hash, d);\n\tCRYPTO_w_unlock(CRYPTO_LOCK_ERR);\n\treturn p;\n\t}', 'void *lh_delete(LHASH *lh, const void *data)\n\t{\n\tunsigned long hash;\n\tLHASH_NODE *nn,**rn;\n\tconst void *ret;\n\tlh->error=0;\n\trn=getrn(lh,data,&hash);\n\tif (*rn == NULL)\n\t\t{\n\t\tlh->num_no_delete++;\n\t\treturn(NULL);\n\t\t}\n\telse\n\t\t{\n\t\tnn= *rn;\n\t\t*rn=nn->next;\n\t\tret=nn->data;\n\t\tOPENSSL_free(nn);\n\t\tlh->num_delete++;\n\t\t}\n\tlh->num_items--;\n\tif ((lh->num_nodes > MIN_NODES) &&\n\t\t(lh->down_load >= (lh->num_items*LH_LOAD_MULT/lh->num_nodes)))\n\t\tcontract(lh);\n\treturn((void *)ret);\n\t}']