crypto/bn/bn_exp.c:1118: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_from_montgomery`.
Showing all 13 steps of the trace


crypto/bn/bn_exp.c:1063:14: Call
1061.           bits -= window0;
1062.           wvalue = bn_get_bits(p, bits) & wmask;
1063.           if (!MOD_EXP_CTIME_COPY_FROM_PREBUF(&tmp, top, powerbuf, wvalue,
                     ^
1064.                                               window))
1065.               goto err;

crypto/bn/bn_exp.c:521:1: Parameter `top`
  519.   }
  520.   
  521. > static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top,
  522.                                             unsigned char *buf, int idx,
  523.                                             int window)

crypto/bn/bn_exp.c:578:5: Assignment
  576.       }
  577.   
  578.       b->top = top;
             ^
  579.       b->flags |= BN_FLG_FIXED_TOP;
  580.       return 1;

crypto/bn/bn_exp.c:1118:10: Call
1116.       } else
1117.   #endif
1118.       if (!BN_from_montgomery(rr, &tmp, mont, ctx))
                 ^
1119.           goto err;
1120.       ret = 1;

crypto/bn/bn_mont.c:160:1: Parameter `a->top`
  158.   #endif                          /* MONT_WORD */
  159.   
  160. > int BN_from_montgomery(BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont,
  161.                          BN_CTX *ctx)
  162.   {

crypto/bn/bn_mont.c:168:34: Call
  166.   
  167.       BN_CTX_start(ctx);
  168.       if ((t = BN_CTX_get(ctx)) && BN_copy(t, a)) {
                                          ^
  169.           retn = bn_from_montgomery_word(ret, t, mont);
  170.           bn_correct_top(ret);

crypto/bn/bn_lib.c:281:1: <Offset trace>
279.   }
280.   
281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
282.   {
283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: Parameter `b->top`
    279.   }
    280.   
    281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
    282.   {
    283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: <Length trace>
279.   }
280.   
281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
282.   {
283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: Parameter `*a->d`
    279.   }
    280.   
    281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
    282.   {
    283.       bn_check_top(b);

crypto/bn/bn_lib.c:287:9: Call
    285.       if (a == b)
    286.           return a;
    287.       if (bn_wexpand(a, b->top) == NULL)
                   ^
    288.           return NULL;
    289.   

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

crypto/bn/bn_lib.c:291:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_from_montgomery` 
    289.   
    290.       if (b->top > 0)
    291.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                   ^
    292.   
    293.       a->neg = b->neg;
