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


crypto/rsa/rsa_ossl.c:610:9: Call
608.               goto err;
609.           }
610.           BN_with_flags(p, rsa->p, BN_FLG_CONSTTIME);
               ^
611.           BN_with_flags(q, rsa->q, BN_FLG_CONSTTIME);
612.   

crypto/bn/bn_lib.c:949:1: Parameter `*b->d`
  947.   }
  948.   
  949. > void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  950.   {
  951.       dest->d = b->d;

crypto/bn/bn_lib.c:951:5: Assignment
  949.   void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  950.   {
  951.       dest->d = b->d;
             ^
  952.       dest->top = b->top;
  953.       dest->dmax = b->dmax;

crypto/rsa/rsa_ossl.c:663:13: Call
661.               }
662.               /* We MUST free dmq1 before any further use of rsa->dmq1 */
663.               BN_free(dmq1);
                   ^
664.           }
665.   

crypto/bn/bn_lib.c:198:1: Parameter `*a->d`
  196.   }
  197.   
  198. > void BN_free(BIGNUM *a)
  199.   {
  200.       if (a == NULL)

crypto/rsa/rsa_ossl.c:667:14: Call
665.   
666.           /* compute I mod p */
667.           if (!BN_mod(r1, c, rsa->p, ctx)) {
                    ^
668.               BN_free(c);
669.               goto err;

crypto/bn/bn_div.c:140:1: Parameter `*dv->d`
  138.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
  139.    */
  140. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
  141.              BN_CTX *ctx)
  142.   {

crypto/bn/bn_div.c:258:10: Call
  256.       /* Setup to 'res' */
  257.       res->neg = (num->neg ^ divisor->neg);
  258.       if (!bn_wexpand(res, (loop + 1)))
                  ^
  259.           goto err;
  260.       res->top = loop - no_branch;

crypto/bn/bn_lib.c:1014:1: Parameter `*a->d`
    1012.   }
    1013.   
    1014. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
    1015.   {
    1016.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_div.c:409:9: Call
  407.            */
  408.           int neg = num->neg;
  409.           BN_rshift(rm, snum, norm_shift);
                 ^
  410.           if (!BN_is_zero(rm))
  411.               rm->neg = neg;

crypto/bn/bn_shift.c:120:1: <Length trace>
118.   }
119.   
120. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
121.   {
122.       int i, j, nw, lb, rb;

crypto/bn/bn_shift.c:120:1: Parameter `*a->d`
    118.   }
    119.   
    120. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
    121.   {
    122.       int i, j, nw, lb, rb;

crypto/bn/bn_shift.c:151:5: Assignment
    149.       }
    150.   
    151.       f = &(a->d[nw]);
               ^
    152.       t = r->d;
    153.       j = a->top - nw;

crypto/bn/bn_shift.c:160:15: Assignment
    158.               *(t++) = *(f++);
    159.       } else {
    160.           l = *(f++);
                         ^
    161.           for (i = j - 1; i != 0; i--) {
    162.               tmp = (l >> rb) & BN_MASK2;

crypto/bn/bn_shift.c:163:17: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `BN_div` 
    161.           for (i = j - 1; i != 0; i--) {
    162.               tmp = (l >> rb) & BN_MASK2;
    163.               l = *(f++);
                           ^
    164.               *(t++) = (tmp | (l << lb)) & BN_MASK2;
    165.           }
