crypto/ec/ecdh_ossl.c:122: error: BUFFER_OVERRUN_L3
  Offset: [8, +oo] (⇐ [8, +oo] + [0, +oo]) Size: [0, 8388607] by call to `BN_mul`.
Showing all 15 steps of the trace


crypto/ec/ecdh_ossl.c:121:14: Call
119.   
120.       if (EC_KEY_get_flags(ecdh) & EC_FLAG_COFACTOR_ECDH) {
121.           if (!EC_GROUP_get_cofactor(group, x, NULL) ||
                    ^
122.               !BN_mul(x, x, priv_key, ctx)) {
123.               ECerr(EC_F_OSSL_ECDH_COMPUTE_KEY, ERR_R_MALLOC_FAILURE);

crypto/ec/ec_lib.c:377:1: Parameter `cofactor->d`
  375.   }
  376.   
  377. > int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor,
  378.                             BN_CTX *ctx)
  379.   {

crypto/ec/ecdh_ossl.c:122:14: Call
120.       if (EC_KEY_get_flags(ecdh) & EC_FLAG_COFACTOR_ECDH) {
121.           if (!EC_GROUP_get_cofactor(group, x, NULL) ||
122.               !BN_mul(x, x, priv_key, ctx)) {
                    ^
123.               ECerr(EC_F_OSSL_ECDH_COMPUTE_KEY, ERR_R_MALLOC_FAILURE);
124.               goto err;

crypto/bn/bn_mul.c:882:1: Parameter `*a->d`
  880.   #endif                          /* BN_RECURSION */
  881.   
  882. > int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
  883.   {
  884.       int ret = 0;

crypto/bn/bn_mul.c:963:17: Call
  961.                   if (bn_wexpand(rr, k * 4) == NULL)
  962.                       goto err;
  963.                   bn_mul_part_recursive(rr->d, a->d, b->d,
                         ^
  964.                                         j, al - j, bl - j, t->d);
  965.               } else {            /* al <= j || bl <= j */

crypto/bn/bn_mul.c:533:1: Parameter `n`
    531.    */
    532.   /* tnX may not be negative but less than n */
    533. > void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n,
    534.                              int tna, int tnb, BN_ULONG *t)
    535.   {

crypto/bn/bn_mul.c:546:10: Call
    544.   
    545.       /* r=(a[0]-a[1])*(b[1]-b[0]) */
    546.       c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna);
                    ^
    547.       c2 = bn_cmp_part_words(&(b[n]), b, tnb, tnb - n);
    548.       neg = 0;

crypto/bn/bn_lib.c:858:1: Parameter `cl`
      856.    */
      857.   
      858. > int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, int cl, int dl)
      859.   {
      860.       int n, i;

crypto/bn/bn_lib.c:875:12: Call
      873.           }
      874.       }
      875.       return bn_cmp_words(a, b, cl);
                        ^
      876.   }
      877.   

crypto/bn/bn_lib.c:831:1: <Offset trace>
829.   }
830.   
831. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
832.   {
833.       int i;

crypto/bn/bn_lib.c:831:1: Parameter `n`
        829.   }
        830.   
        831. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
        832.   {
        833.       int i;

crypto/bn/bn_lib.c:840:10: Assignment
        838.       if (aa != bb)
        839.           return ((aa > bb) ? 1 : -1);
        840.       for (i = n - 2; i >= 0; i--) {
                        ^
        841.           aa = a[i];
        842.           bb = b[i];

crypto/bn/bn_lib.c:831:1: <Length trace>
829.   }
830.   
831. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
832.   {
833.       int i;

crypto/bn/bn_lib.c:831:1: Parameter `*b`
        829.   }
        830.   
        831. > int bn_cmp_words(const BN_ULONG *a, const BN_ULONG *b, int n)
        832.   {
        833.       int i;

crypto/bn/bn_lib.c:842:14: Array access: Offset: [8, +oo] (⇐ [8, +oo] + [0, +oo]) Size: [0, 8388607] by call to `BN_mul` 
        840.       for (i = n - 2; i >= 0; i--) {
        841.           aa = a[i];
        842.           bb = b[i];
                            ^
        843.           if (aa != bb)
        844.               return ((aa > bb) ? 1 : -1);
