crypto/bn/bn_gf2m.c:744: 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:742:18: Call
740.       bn_check_top(xx);
741.       BN_CTX_start(ctx);
742.       if ((field = BN_CTX_get(ctx)) == NULL)
                        ^
743.           goto err;
744.       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: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_gf2m.c:744:10: Call
742.       if ((field = BN_CTX_get(ctx)) == NULL)
743.           goto err;
744.       if (!BN_GF2m_arr2poly(p, field))
                ^
745.           goto err;
746.   

crypto/bn/bn_gf2m.c:1209:1: Parameter `*a->d`
  1207.    * bit-string.  The array must be terminated by -1.
  1208.    */
  1209. > int BN_GF2m_arr2poly(const int p[], BIGNUM *a)
  1210.   {
  1211.       int i;

crypto/bn/bn_gf2m.c:1214:5: Call
  1212.   
  1213.       bn_check_top(a);
  1214.       BN_zero(a);
              ^
  1215.       for (i = 0; p[i] != -1; i++) {
  1216.           if (BN_set_bit(a, p[i]) == 0)

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_GF2m_arr2poly` 
    397.           return (0);
    398.       a->neg = 0;
    399.       a->d[0] = w;
               ^
    400.       a->top = (w ? 1 : 0);
    401.       bn_check_top(a);
