crypto/bn/bn_gf2m.c:567: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_GF2m_mod`.
Showing all 18 steps of the trace


crypto/bn/bn_gf2m.c:560:9: Call
558.       BN_CTX_start(ctx);
559.   
560.       b = BN_CTX_get(ctx);
               ^
561.       c = BN_CTX_get(ctx);
562.       u = BN_CTX_get(ctx);

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:364:15: Assignment
    362.       a->neg = 0;
    363.       a->d[0] = w;
    364.       a->top = (w ? 1 : 0);
                         ^
    365.       bn_check_top(a);
    366.       return 1;

crypto/bn/bn_lib.c:364:5: Assignment
    362.       a->neg = 0;
    363.       a->d[0] = w;
    364.       a->top = (w ? 1 : 0);
               ^
    365.       bn_check_top(a);
    366.       return 1;

crypto/bn/bn_gf2m.c:567:10: Call
565.           goto err;
566.   
567.       if (!BN_GF2m_mod(u, a, p))
                ^
568.           goto err;
569.       if (BN_is_zero(u))

crypto/bn/bn_gf2m.c:388:1: Parameter `*r->d`
  386.    * BN_GF2m_mod_arr function.
  387.    */
  388. > int BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p)
  389.   {
  390.       int ret = 0;

crypto/bn/bn_gf2m.c:399:11: Call
  397.           return 0;
  398.       }
  399.       ret = BN_GF2m_mod_arr(r, a, arr);
                   ^
  400.       bn_check_top(r);
  401.       return ret;

crypto/bn/bn_gf2m.c:290:1: Parameter `*r->d`
    288.   
    289.   /* Performs modular reduction of a and store result in r.  r could be a. */
    290. > int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[])
    291.   {
    292.       int j, k;

crypto/bn/bn_gf2m.c:309:14: Call
    307.        */
    308.       if (a != r) {
    309.           if (!bn_wexpand(r, a->top))
                        ^
    310.               return 0;
    311.           for (j = 0; j < a->top; j++) {

crypto/bn/bn_lib.c:910:1: Parameter `*a->d`
      908.   }
      909.   
      910. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
      911.   {
      912.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:912:37: Call
      910.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
      911.   {
      912.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                                 ^
      913.   }
      914.   

crypto/bn/bn_lib.c:246:1: Parameter `*b->d`
        244.    */
        245.   
        246. > BIGNUM *bn_expand2(BIGNUM *b, int words)
        247.   {
        248.       bn_check_top(b);

crypto/bn/bn_lib.c:251:23: Call
        249.   
        250.       if (words > b->dmax) {
        251.           BN_ULONG *a = bn_expand_internal(b, words);
                                     ^
        252.           if (!a)
        253.               return NULL;

crypto/bn/bn_lib.c:208:1: <Offset trace>
206.   /* This is used by bn_expand2() */
207.   /* The caller MUST check that words > b->dmax before calling this */
208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
209.   {
210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:208:1: Parameter `b->top`
          206.   /* This is used by bn_expand2() */
          207.   /* The caller MUST check that words > b->dmax before calling this */
          208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
          209.   {
          210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:208:1: <Length trace>
206.   /* This is used by bn_expand2() */
207.   /* The caller MUST check that words > b->dmax before calling this */
208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
209.   {
210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:208:1: Parameter `*b->d`
          206.   /* This is used by bn_expand2() */
          207.   /* The caller MUST check that words > b->dmax before calling this */
          208. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
          209.   {
          210.       BN_ULONG *a = NULL;

crypto/bn/bn_lib.c:233:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_GF2m_mod` 
          231.       assert(b->top <= words);
          232.       if (b->top > 0)
          233.           memcpy(a, b->d, sizeof(*a) * b->top);
                         ^
          234.   
          235.       return a;
