crypto/ec/ec_lib.c:298: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 67108856] by call to `ec_precompute_mont_data`.
Showing all 18 steps of the trace


crypto/ec/ec_lib.c:281:14: Call
279.   
280.       if (order != NULL) {
281.           if (!BN_copy(group->order, order))
                    ^
282.               return 0;
283.       } else

crypto/bn/bn_lib.c:323:1: Parameter `a->top`
  321.   }
  322.   
  323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
  324.   {
  325.       bn_check_top(b);

crypto/ec/ec_lib.c:297:9: Call
295.        * |group->mont_data| will be NULL in this case.
296.        */
297.       if (BN_is_odd(group->order)) {
               ^
298.           return ec_precompute_mont_data(group);
299.       }

crypto/bn/bn_lib.c:870:1: Parameter `a->top`
  868.   }
  869.   
  870. > int BN_is_odd(const BIGNUM *a)
  871.   {
  872.       return (a->top > 0) && (a->d[0] & 1);

crypto/ec/ec_lib.c:298:16: Call
296.        */
297.       if (BN_is_odd(group->order)) {
298.           return ec_precompute_mont_data(group);
                      ^
299.       }
300.   

crypto/ec/ec_lib.c:964:1: Parameter `group->order->top`
  962.    * returns one on success. On error it returns zero.
  963.    */
  964. > int ec_precompute_mont_data(EC_GROUP *group)
  965.   {
  966.       BN_CTX *ctx = BN_CTX_new();

crypto/ec/ec_lib.c:979:10: Call
  977.           goto err;
  978.   
  979.       if (!BN_MONT_CTX_set(group->mont_data, group->order, ctx)) {
                  ^
  980.           BN_MONT_CTX_free(group->mont_data);
  981.           group->mont_data = NULL;

crypto/bn/bn_mont.c:247:1: Parameter `mod->top`
    245.   }
    246.   
    247. > int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
    248.   {
    249.       int ret = 0;

crypto/bn/bn_mont.c:252:9: Call
    250.       BIGNUM *Ri, *R;
    251.   
    252.       if (BN_is_zero(mod))
                   ^
    253.           return 0;
    254.   

crypto/bn/bn_lib.c:855:1: Parameter `a->top`
      853.   }
      854.   
      855. > int BN_is_zero(const BIGNUM *a)
      856.   {
      857.       return a->top == 0;

crypto/bn/bn_mont.c:259:10: Call
    257.           goto err;
    258.       R = &(mont->RR);            /* grab RR as a temp */
    259.       if (!BN_copy(&(mont->N), mod))
                    ^
    260.           goto err;               /* Set N */
    261.       mont->N.neg = 0;

crypto/bn/bn_lib.c:323:1: <Offset trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `b->top`
      321.   }
      322.   
      323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      324.   {
      325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: <Length trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `*a->d`
      321.   }
      322.   
      323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
      324.   {
      325.       bn_check_top(b);

crypto/bn/bn_lib.c:329:9: Call
      327.       if (a == b)
      328.           return a;
      329.       if (bn_wexpand(a, b->top) == NULL)
                     ^
      330.           return NULL;
      331.   

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

crypto/bn/bn_lib.c:333:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `ec_precompute_mont_data` 
      331.   
      332.       if (b->top > 0)
      333.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                     ^
      334.   
      335.       if (BN_get_flags(b, BN_FLG_CONSTTIME) != 0)
