crypto/bn/bn_prime.c:363: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_rshift`.
Showing all 11 steps of the trace


crypto/bn/bn_prime.c:336:18: Call
334.       if (a->neg) {
335.           BIGNUM *t;
336.           if ((t = BN_CTX_get(ctx)) == NULL)
                        ^
337.               goto err;
338.           BN_copy(t, a);

crypto/bn/bn_ctx.c:275:5: Call
  273.       }
  274.       /* OK, make sure the returned bignum is "zero" */
  275.       BN_zero(ret);
             ^
  276.       ctx->used++;
  277.       CTXDBG_RET(ctx, ret);

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

crypto/bn/bn_lib.c:523:9: Call
    521.   {
    522.       bn_check_top(a);
    523.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    524.           return (0);
    525.       a->neg = 0;

crypto/bn/bn_lcl.h:777:1: Parameter `*a->d`
      775.   int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx);
      776.   
      777. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      778.   {
      779.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_prime.c:363:10: Call
361.       while (!BN_is_bit_set(A1, k))
362.           k++;
363.       if (!BN_rshift(A1_odd, A1, k))
                ^
364.           goto err;
365.   

crypto/bn/bn_shift.c:168:1: <Length trace>
166.   }
167.   
168. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
169.   {
170.       int i, j, nw, lb, rb;

crypto/bn/bn_shift.c:168:1: Parameter `*a->d`
  166.   }
  167.   
  168. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
  169.   {
  170.       int i, j, nw, lb, rb;

crypto/bn/bn_shift.c:199:5: Assignment
  197.       }
  198.   
  199.       f = &(a->d[nw]);
             ^
  200.       t = r->d;
  201.       j = a->top - nw;

crypto/bn/bn_shift.c:208:15: Assignment
  206.               *(t++) = *(f++);
  207.       } else {
  208.           l = *(f++);
                       ^
  209.           for (i = j - 1; i != 0; i--) {
  210.               tmp = (l >> rb) & BN_MASK2;

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