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


crypto/ec/ec_mult.c:193:14: Call
191.            * constant-timeness
192.            */
193.           if (!BN_nnmod(k, k, group->order, ctx))
                    ^
194.               goto err;
195.       }

crypto/bn/bn_mod.c:20:11: Call
  18.        */
  19.   
  20.       if (!(BN_mod(r, m, d, ctx)))
                  ^
  21.           return 0;
  22.       if (!r->neg)

crypto/bn/bn_div.c:137:1: Parameter `*dv->d`
    135.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
    136.    */
    137. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    138.              BN_CTX *ctx)
    139.   {

crypto/ec/ec_mult.c:210:10: Call
208.   
209.       group_top = bn_get_top(group->field);
210.       if ((bn_wexpand(s->X, group_top) == NULL)
                ^
211.           || (bn_wexpand(s->Y, group_top) == NULL)
212.           || (bn_wexpand(s->Z, group_top) == NULL)

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;
