apps/apps.c:2490: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - 1):unsigned64 by call to `JPAKE_STEP1_process`.
Showing all 16 steps of the trace


apps/apps.c:2489:2: Call
2487.   	JPAKE_STEP1_init(&s1);
2488.   	jpake_receive_part(&s1.p1, bconn);
2489.   	jpake_receive_part(&s1.p2, bconn);
         ^
2490.   	if(!JPAKE_STEP1_process(ctx, &s1))
2491.   		{

apps/apps.c:2479:2: Call
  2477.   	{
  2478.   	readbn(&p->gx, bconn);
  2479.   	readbn(&p->zkpx.gr, bconn);
           ^
  2480.   	readbn(&p->zkpx.b, bconn);
  2481.   	}

apps/apps.c:2473:2: Call
    2471.   	assert(buf[l-1] == '\n');
    2472.   	buf[l-1] = '\0';
    2473.   	BN_hex2bn(bn, buf);
             ^
    2474.   	}
    2475.   

crypto/bn/bn_print.c:172:1: Parameter `(*bn)->top`
      170.   	}
      171.   
      172. > int BN_hex2bn(BIGNUM **bn, const char *a)
      173.   	{
      174.   	BIGNUM *ret=NULL;

apps/apps.c:2490:6: Call
2488.   	jpake_receive_part(&s1.p1, bconn);
2489.   	jpake_receive_part(&s1.p2, bconn);
2490.   	if(!JPAKE_STEP1_process(ctx, &s1))
             ^
2491.   		{
2492.   		ERR_print_errors(bio_err);

crypto/jpake/jpake.c:285:1: Parameter `ctx->p.g->top`
  283.       }
  284.   
  285. > int JPAKE_STEP1_process(JPAKE_CTX *ctx, const JPAKE_STEP1 *received)
  286.       {
  287.      /* verify their ZKP(xc) */

crypto/jpake/jpake.c:288:9: Call
  286.       {
  287.      /* verify their ZKP(xc) */
  288.       if(!verify_zkp(&received->p1, ctx->p.g, ctx))
                 ^
  289.   	{
  290.   	JPAKEerr(JPAKE_F_JPAKE_STEP1_PROCESS, JPAKE_R_VERIFY_X3_FAILED);

crypto/jpake/jpake.c:214:1: Parameter `zkpg->top`
    212.       }
    213.   
    214. > static int verify_zkp(const JPAKE_STEP_PART *p, const BIGNUM *zkpg,
    215.   		      JPAKE_CTX *ctx)
    216.       {

crypto/jpake/jpake.c:223:5: Call
    221.       int ret = 0;
    222.   
    223.       zkp_hash(h, zkpg, p, ctx->p.peer_name);
               ^
    224.   
    225.      /* t1 = g^b */

crypto/jpake/jpake.c:162:1: Parameter `zkpg->top`
      160.   
      161.   /* h=hash(g, g^r, g^x, name) */
      162. > static void zkp_hash(BIGNUM *h, const BIGNUM *zkpg, const JPAKE_STEP_PART *p,
      163.   		     const char *proof_name)
      164.       {

crypto/jpake/jpake.c:173:5: Call
      171.       */
      172.       SHA1_Init(&sha);
      173.       hashbn(&sha, zkpg);
                 ^
      174.       OPENSSL_assert(!BN_is_zero(p->zkpx.gr));
      175.       hashbn(&sha, p->zkpx.gr);

crypto/jpake/jpake.c:150:1: Parameter `bn->top`
        148.       }
        149.   
        150. > static void hashbn(SHA_CTX *sha, const BIGNUM *bn)
        151.       {
        152.       size_t l = BN_num_bytes(bn);

crypto/jpake/jpake.c:152:16: Call
        150.   static void hashbn(SHA_CTX *sha, const BIGNUM *bn)
        151.       {
        152.       size_t l = BN_num_bytes(bn);
                              ^
        153.       unsigned char *bin = OPENSSL_malloc(l);
        154.   

crypto/bn/bn_lib.c:248:1: <LHS trace>
246.   	}
247.   
248. > int BN_num_bits(const BIGNUM *a)
249.   	{
250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:248:1: Parameter `a->top`
          246.   	}
          247.   
          248. > int BN_num_bits(const BIGNUM *a)
          249.   	{
          250.   	int i = a->top - 1;

crypto/bn/bn_lib.c:250:2: Binary operation: ([0, +oo] - 1):unsigned64 by call to `JPAKE_STEP1_process` 
          248.   int BN_num_bits(const BIGNUM *a)
          249.   	{
          250.   	int i = a->top - 1;
                  ^
          251.   	bn_check_top(a);
          252.   
