crypto/dsa/dsa_ossl.c:203: 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:133:1: Parameter `(*rp)->d`
131.   }
132.   
133. > static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in,
134.                             BIGNUM **kinvp, BIGNUM **rp,
135.                             const unsigned char *dgst, int dlen)

crypto/dsa/dsa_ossl.c:203:10: Call
201.       }
202.   
203.       if (!BN_mod(r, r, dsa->q, ctx))
                ^
204.           goto err;
205.   

crypto/bn/bn_div.c:140:1: Parameter `*rm->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: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: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:393:1: <Length trace>
391.   }
392.   
393. > int BN_set_word(BIGNUM *a, BN_ULONG w)
394.   {
395.       bn_check_top(a);

crypto/bn/bn_lib.c:393:1: Parameter `*a->d`
      391.   }
      392.   
      393. > int BN_set_word(BIGNUM *a, BN_ULONG w)
      394.   {
      395.       bn_check_top(a);

crypto/bn/bn_lib.c:396:9: Call
      394.   {
      395.       bn_check_top(a);
      396.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                     ^
      397.           return (0);
      398.       a->neg = 0;

crypto/bn/bn_lcl.h:660:1: Parameter `*a->d`
        658.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
        659.   
        660. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
        661.   {
        662.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_lib.c:399:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_div` 
      397.           return (0);
      398.       a->neg = 0;
      399.       a->d[0] = w;
                 ^
      400.       a->top = (w ? 1 : 0);
      401.       bn_check_top(a);
