crypto/dh/dh_check.c:110: error: BUFFER_OVERRUN_L3
  Offset: [-1, +oo] Size: 13 by call to `BN_is_prime`.
Showing all 11 steps of the trace


crypto/dh/dh_check.c:81:6: Call
79.   
80.   	*ret=0;
81.   	ctx=BN_CTX_new();
           ^
82.   	if (ctx == NULL) goto err;
83.   	q=BN_new();

crypto/bn/bn_lib.c:319:2: Call
  317.   		}
  318.   
  319.   	BN_CTX_init(ret);
          ^
  320.   	ret->flags=BN_FLG_MALLOCED;
  321.   	return(ret);

crypto/bn/bn_lib.c:327:2: Assignment
    325.   	{
    326.   	memset(ctx,0,sizeof(BN_CTX));
    327.   	ctx->tos=0;
            ^
    328.   	ctx->flags=0;
    329.   	}

crypto/dh/dh_check.c:105:7: Call
103.   		*ret|=DH_UNABLE_TO_CHECK_GENERATOR;
104.   
105.   	if (!BN_is_prime(dh->p,BN_prime_checks(BN_num_bits(dh->p)),NULL,ctx,NULL))
             ^
106.   		*ret|=DH_CHECK_P_NOT_PRIME;
107.   	else

crypto/bn/bn_prime.c:156:1: Parameter `ctx_passed->tos`
  154.   	}
  155.   
  156. > int BN_is_prime(BIGNUM *a, int checks, void (*callback)(int,int,void *),
  157.   	     BN_CTX *ctx_passed, void *cb_arg)
  158.   	{

crypto/dh/dh_check.c:110:8: Call
108.   		{
109.   		if (!BN_rshift1(q,dh->p)) goto err;
110.   		if (!BN_is_prime(q,BN_prime_checks(BN_num_bits(q)),NULL,ctx,NULL))
              ^
111.   			*ret|=DH_CHECK_P_NOT_STRONG_PRIME;
112.   		}

crypto/bn/bn_prime.c:156:1: <Offset trace>
154.   	}
155.   
156. > int BN_is_prime(BIGNUM *a, int checks, void (*callback)(int,int,void *),
157.   	     BN_CTX *ctx_passed, void *cb_arg)
158.   	{

crypto/bn/bn_prime.c:156:1: Parameter `ctx_passed->tos`
  154.   	}
  155.   
  156. > int BN_is_prime(BIGNUM *a, int checks, void (*callback)(int,int,void *),
  157.   	     BN_CTX *ctx_passed, void *cb_arg)
  158.   	{

crypto/bn/bn_prime.c:156:1: <Length trace>
154.   	}
155.   
156. > int BN_is_prime(BIGNUM *a, int checks, void (*callback)(int,int,void *),
157.   	     BN_CTX *ctx_passed, void *cb_arg)
158.   	{

crypto/bn/bn_prime.c:156:1: Parameter `ctx_passed->bn[*]`
  154.   	}
  155.   
  156. > int BN_is_prime(BIGNUM *a, int checks, void (*callback)(int,int,void *),
  157.   	     BN_CTX *ctx_passed, void *cb_arg)
  158.   	{

crypto/bn/bn_prime.c:174:2: Array access: Offset: [-1, +oo] Size: 13 by call to `BN_is_prime` 
  172.   	if ((mont=BN_MONT_CTX_new()) == NULL) goto err;
  173.   
  174.   	check= &(ctx->bn[ctx->tos++]);
          ^
  175.   
  176.   	/* Setup the montgomery structure */
