crypto/ec/ec_mult.c:179: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `bn_wexpand`.
Showing all 14 steps of the trace


crypto/ec/ec_mult.c:167:14: Call
165.   
166.       BN_CTX_start(ctx);
167.       lambda = BN_CTX_get(ctx);
                    ^
168.       k = BN_CTX_get(ctx);
169.       if (k == 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: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/ec/ec_mult.c:179:10: Call
177.        */
178.       group_top = bn_get_top(group->order);
179.       if ((bn_wexpand(k, group_top + 1) == NULL)
                ^
180.           || (bn_wexpand(lambda, group_top + 1) == NULL))
181.           goto err;

crypto/bn/bn_lib.c:923:1: Parameter `*a->d`
  921.   }
  922.   
  923. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
  924.   {
  925.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:925:37: Call
  923.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
  924.   {
  925.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                             ^
  926.   }
  927.   

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_wexpand` 
      231.       assert(b->top <= words);
      232.       if (b->top > 0)
      233.           memcpy(a, b->d, sizeof(*a) * b->top);
                     ^
      234.   
      235.       return a;
