test/bntest.c:1401: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_exp`.
Showing all 14 steps of the trace


test/bntest.c:1397:17: Call
1395.       if (!TEST_ptr(a = getBN(s, "A"))
1396.               || !TEST_ptr(e = getBN(s, "E"))
1397.               || !TEST_ptr(exp = getBN(s, "Exp"))
                        ^
1398.               || !TEST_ptr(ret = BN_new()))
1399.           goto err;

test/bntest.c:107:9: Call
  105.       }
  106.   
  107.       if (parseBN(&ret, hex) != (int)strlen(hex)) {
                 ^
  108.           TEST_error("Could not decode '%s'", hex);
  109.           return NULL;

test/bntest.c:88:12: Call
    86.   {
    87.       *out = NULL;
    88.       return BN_hex2bn(out, in);
                     ^
    89.   }
    90.   

crypto/bn/bn_print.c:126:1: Parameter `(*bn)->top`
      124.   }
      125.   
      126. > int BN_hex2bn(BIGNUM **bn, const char *a)
      127.   {
      128.       BIGNUM *ret = NULL;

test/bntest.c:1401:10: Call
1399.           goto err;
1400.   
1401.       if (!TEST_true(BN_exp(ret, a, e, ctx))
                 ^
1402.               || !equalBN("A ^ E", exp, ret))
1403.           goto err;

crypto/bn/bn_exp.c:41:1: Parameter `a->top`
  39.   
  40.   /* this one works - simple but works */
  41. > int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
  42.   {
  43.       int i, bits, ret = 0;

crypto/bn/bn_exp.c:58:9: Call
  56.           goto err;
  57.   
  58.       if (BN_copy(v, a) == NULL)
                ^
  59.           goto err;
  60.       bits = BN_num_bits(p);

crypto/bn/bn_lib.c:323:1: <Offset trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `b->top`
    321.   }
    322.   
    323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
    324.   {
    325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: <Length trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `*a->d`
    321.   }
    322.   
    323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
    324.   {
    325.       bn_check_top(b);

crypto/bn/bn_lib.c:329:9: Call
    327.       if (a == b)
    328.           return a;
    329.       if (bn_wexpand(a, b->top) == NULL)
                   ^
    330.           return NULL;
    331.   

crypto/bn/bn_lib.c:951:1: Parameter `*a->d`
      949.   }
      950.   
      951. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
      952.   {
      953.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:333:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_exp` 
    331.   
    332.       if (b->top > 0)
    333.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                   ^
    334.   
    335.       if (BN_get_flags(b, BN_FLG_CONSTTIME) != 0)
