crypto/rsa/rsa_x931g.c:151: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_div`.
Showing all 14 steps of the trace


crypto/rsa/rsa_x931g.c:137:10: Call
135.       if (rsa->n == NULL)
136.           goto err;
137.       if (!BN_mul(rsa->n, rsa->p, rsa->q, ctx))
                ^
138.           goto err;
139.   

crypto/bn/bn_mul.c:933:13: Assignment
  931.               if (bn_wexpand(rr, 16) == NULL)
  932.                   goto err;
  933.               rr->top = 16;
                     ^
  934.               bn_mul_comba8(rr->d, a->d, b->d);
  935.               goto end;

crypto/rsa/rsa_x931g.c:151:10: Call
149.           goto err;
150.   
151.       if (!BN_div(r0, NULL, r0, r3, ctx))
                ^
152.           goto err;               /* LCM((p-1)(q-1)) */
153.   

crypto/bn/bn_div.c:188:1: Parameter `num->top`
  186.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  187.    */
  188. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  189.              BN_CTX *ctx)
  190.   {

crypto/bn/bn_div.c:258:11: Call
  256.       sdiv->neg = 0;
  257.       norm_shift += BN_BITS2;
  258.       if (!(BN_lshift(snum, num, norm_shift)))
                   ^
  259.           goto err;
  260.       snum->neg = 0;

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_div` 
    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.           }
