crypto/bn/bn_mont.c:429: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_lshift`.
Showing all 13 steps of the trace


crypto/bn/bn_mont.c:357:15: Call
355.   
356.       BN_CTX_start(ctx);
357.       if ((Ri = BN_CTX_get(ctx)) == NULL)
                     ^
358.           goto err;
359.       R = &(mont->RR);            /* grab RR as a temp */

crypto/bn/bn_ctx.c:283:5: Call
  281.       }
  282.       /* OK, make sure the returned bignum is "zero" */
  283.       BN_zero(ret);
             ^
  284.       ctx->used++;
  285.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:520:1: Parameter `a->top`
    518.   }
    519.   
    520. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    521.   {
    522.       bn_check_top(a);

crypto/bn/bn_mont.c:429:14: Call
427.           if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL)
428.               goto err;
429.           if (!BN_lshift(Ri, Ri, BN_BITS2))
                    ^
430.               goto err;           /* R*Ri */
431.           if (!BN_is_zero(Ri)) {

crypto/bn/bn_shift.c:129:1: <Offset trace>
127.   }
128.   
129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
130.   {
131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:129:1: Parameter `n`
  127.   }
  128.   
  129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
  130.   {
  131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:144:5: Assignment
  142.   
  143.       r->neg = a->neg;
  144.       nw = n / BN_BITS2;
             ^
  145.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
  146.           return (0);

crypto/bn/bn_shift.c:129:1: <Length trace>
127.   }
128.   
129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
130.   {
131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:129:1: Parameter `*r->d`
  127.   }
  128.   
  129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
  130.   {
  131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:145:9: Call
  143.       r->neg = a->neg;
  144.       nw = n / BN_BITS2;
  145.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
                 ^
  146.           return (0);
  147.       lb = n % BN_BITS2;

crypto/bn/bn_lib.c:1071:1: Parameter `*a->d`
    1069.   }
    1070.   
    1071. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
    1072.   {
    1073.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_shift.c:150:5: Assignment
  148.       rb = BN_BITS2 - lb;
  149.       f = a->d;
  150.       t = r->d;
             ^
  151.       t[a->top + nw] = 0;
  152.       if (lb == 0)

crypto/bn/bn_shift.c:158:13: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `BN_lshift` 
  156.           for (i = a->top - 1; i >= 0; i--) {
  157.               l = f[i];
  158.               t[nw + i + 1] |= (l >> rb) & BN_MASK2;
                     ^
  159.               t[nw + i] = (l << lb) & BN_MASK2;
  160.           }
