crypto/bn/bn_prime.c:243: error: BUFFER_OVERRUN_L3
  Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607] by call to `BN_copy`.
Showing all 12 steps of the trace


crypto/bn/bn_prime.c:241:18: Call
239.       if (a->neg) {
240.           BIGNUM *t;
241.           if ((t = BN_CTX_get(ctx)) == NULL)
                        ^
242.               goto err;
243.           if (BN_copy(t, a) == NULL)

crypto/bn/bn_ctx.c:229:5: Call
  227.       }
  228.       /* OK, make sure the returned bignum is "zero" */
  229.       BN_zero(ret);
             ^
  230.       ctx->used++;
  231.       CTXDBG_RET(ctx, ret);

crypto/bn/bn_lib.c:463:1: Parameter `*a->d`
    461.   }
    462.   
    463. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    464.   {
    465.       bn_check_top(a);

crypto/bn/bn_lib.c:466:9: Call
    464.   {
    465.       bn_check_top(a);
    466.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    467.           return (0);
    468.       a->neg = 0;

crypto/bn/bn_lcl.h:676:1: Parameter `*a->d`
      674.   int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, BN_CTX *ctx);
      675.   
      676. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      677.   {
      678.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_prime.c:243:13: Call
241.           if ((t = BN_CTX_get(ctx)) == NULL)
242.               goto err;
243.           if (BN_copy(t, a) == NULL)
                   ^
244.               goto err;
245.           t->neg = 0;

crypto/bn/bn_lib.c:362:1: <Length trace>
360.   }
361.   
362. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
363.   {
364.       int i;

crypto/bn/bn_lib.c:362:1: Parameter `*a->d`
  360.   }
  361.   
  362. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
  363.   {
  364.       int i;

crypto/bn/bn_lib.c:372:9: Call
  370.       if (a == b)
  371.           return (a);
  372.       if (bn_wexpand(a, b->top) == NULL)
                 ^
  373.           return (NULL);
  374.   

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

crypto/bn/bn_lib.c:376:5: Assignment
  374.   
  375.   #if 1
  376.       A = a->d;
             ^
  377.       B = b->d;
  378.       for (i = b->top >> 2; i > 0; i--, A += 4, B += 4) {

crypto/bn/bn_lib.c:387:9: Array access: Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607] by call to `BN_copy` 
  385.           A[1] = a1;
  386.           A[2] = a2;
  387.           A[3] = a3;
                 ^
  388.       }
  389.       /* ultrix cc workaround, see comments in bn_expand_internal */
