crypto/dsa/dsa_ossl.c:213: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_div`.
Showing all 11 steps of the trace


crypto/dsa/dsa_ossl.c:143:1: Parameter `(*rp)->d`
141.   }
142.   
143. > static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,
144.                             BIGNUM **kinvp, BIGNUM **rp,
145.                             const unsigned char *dgst, int dlen)

crypto/dsa/dsa_ossl.c:213:10: Call
211.       }
212.   
213.       if (!BN_mod(r, r, dsa->q, ctx))
                ^
214.           goto err;
215.   

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

crypto/bn/bn_div.c:403:9: Call
  401.            */
  402.           int neg = num->neg;
  403.           BN_rshift(rm, snum, norm_shift);
                 ^
  404.           if (!BN_is_zero(rm))
  405.               rm->neg = neg;

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

crypto/bn/bn_shift.c:140:9: Call
    138.       lb = BN_BITS2 - rb;
    139.       if (nw >= a->top || a->top == 0) {
    140.           BN_zero(r);
                   ^
    141.           return 1;
    142.       }

crypto/bn/bn_lib.c:387:1: <Length trace>
385.   }
386.   
387. > int BN_set_word(BIGNUM *a, BN_ULONG w)
388.   {
389.       bn_check_top(a);

crypto/bn/bn_lib.c:387:1: Parameter `*a->d`
      385.   }
      386.   
      387. > int BN_set_word(BIGNUM *a, BN_ULONG w)
      388.   {
      389.       bn_check_top(a);

crypto/bn/bn_lib.c:390:9: Call
      388.   {
      389.       bn_check_top(a);
      390.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                     ^
      391.           return 0;
      392.       a->neg = 0;

crypto/bn/bn_lcl.h:651:1: Parameter `*a->d`
        649.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
        650.   
        651. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
        652.   {
        653.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_lib.c:393:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_div` 
      391.           return 0;
      392.       a->neg = 0;
      393.       a->d[0] = w;
                 ^
      394.       a->top = (w ? 1 : 0);
      395.       bn_check_top(a);
