crypto/bn/bn_gf2m.c:732: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_GF2m_arr2poly`.
Showing all 13 steps of the trace


crypto/bn/bn_gf2m.c:730:18: Call
728.       bn_check_top(xx);
729.       BN_CTX_start(ctx);
730.       if ((field = BN_CTX_get(ctx)) == NULL)
                        ^
731.           goto err;
732.       if (!BN_GF2m_arr2poly(p, field))

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: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_gf2m.c:732:10: Call
730.       if ((field = BN_CTX_get(ctx)) == NULL)
731.           goto err;
732.       if (!BN_GF2m_arr2poly(p, field))
                ^
733.           goto err;
734.   

crypto/bn/bn_gf2m.c:1197:1: Parameter `*a->d`
  1195.    * bit-string.  The array must be terminated by -1.
  1196.    */
  1197. > int BN_GF2m_arr2poly(const int p[], BIGNUM *a)
  1198.   {
  1199.       int i;

crypto/bn/bn_gf2m.c:1202:5: Call
  1200.   
  1201.       bn_check_top(a);
  1202.       BN_zero(a);
              ^
  1203.       for (i = 0; p[i] != -1; i++) {
  1204.           if (BN_set_bit(a, p[i]) == 0)

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_GF2m_arr2poly` 
    391.           return 0;
    392.       a->neg = 0;
    393.       a->d[0] = w;
               ^
    394.       a->top = (w ? 1 : 0);
    395.       bn_check_top(a);
