crypto/ec/ec2_mult.c:370: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `ec_GF2m_montgomery_point_multiply`.
Showing all 15 steps of the trace


crypto/ec/ec2_mult.c:370:14: Call
368.   
369.       if (scalar) {
370.           if (!ec_GF2m_montgomery_point_multiply
                    ^
371.               (group, p, scalar, group->generator, ctx))
372.               goto err;

crypto/ec/ec2_mult.c:259:12: Call
  257.       if (bn_wexpand(x1, group_top) == NULL
  258.           || bn_wexpand(z1, group_top) == NULL
  259.           || bn_wexpand(x2, group_top) == NULL
                    ^
  260.           || bn_wexpand(z2, group_top) == NULL)
  261.           goto err;

crypto/bn/bn_lib.c:948:1: Parameter `*a->d`
    946.   }
    947.   
    948. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
    949.   {
    950.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/ec/ec2_mult.c:271:10: Call
  269.       if (!group->meth->field_sqr(group, x2, z2, ctx))
  270.           goto err;
  271.       if (!BN_GF2m_add(x2, x2, group->b))
                  ^
  272.           goto err;               /* x2 = x^4 + b */
  273.   

crypto/bn/bn_gf2m.c:260:1: Parameter `*r->d`
    258.    * could be equal; r is the bitwise XOR of a and b.
    259.    */
    260. > int BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
    261.   {
    262.       int i;

crypto/bn/bn_gf2m.c:276:9: Call
    274.       }
    275.   
    276.       if (bn_wexpand(r, at->top) == NULL)
                   ^
    277.           return 0;
    278.   

crypto/bn/bn_lib.c:948:1: Parameter `*a->d`
      946.   }
      947.   
      948. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
      949.   {
      950.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:950:37: Call
      948.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
      949.   {
      950.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                                 ^
      951.   }
      952.   

crypto/bn/bn_lib.c:284:1: Parameter `*b->d`
        282.    */
        283.   
        284. > BIGNUM *bn_expand2(BIGNUM *b, int words)
        285.   {
        286.       bn_check_top(b);

crypto/bn/bn_lib.c:289:23: Call
        287.   
        288.       if (words > b->dmax) {
        289.           BN_ULONG *a = bn_expand_internal(b, words);
                                     ^
        290.           if (!a)
        291.               return NULL;

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

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

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

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

crypto/bn/bn_lib.c:271:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `ec_GF2m_montgomery_point_multiply` 
          269.       assert(b->top <= words);
          270.       if (b->top > 0)
          271.           memcpy(a, b->d, sizeof(*a) * b->top);
                         ^
          272.   
          273.       return a;
