test/ectest.c:77: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mul`.
Showing all 11 steps of the trace


test/ectest.c:47:10: Call
45.           goto err;
46.   
47.       if (!TEST_true(EC_GROUP_get_order(group, order, ctx))
               ^
48.           || !TEST_true(EC_POINT_mul(group, Q, order, NULL, NULL, ctx))
49.           || !TEST_true(EC_POINT_is_at_infinity(group, Q))

crypto/ec/ec_lib.c:319:1: Parameter `order->d`
  317.   }
  318.   
  319. > int EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx)
  320.   {
  321.       if (group->order == NULL)

test/ectest.c:77:17: Call
75.   
76.               /* n2 = (1 - order) * (1 + order) = 1 - order^2 */
77.               || !TEST_true(BN_mul(n2, n1, n2, ctx))
                      ^
78.               || !TEST_true(EC_POINT_mul(group, Q, NULL, P, n2, ctx))
79.               || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, ctx)))

crypto/bn/bn_mul.c:547:13: Assignment
  545.               if (bn_wexpand(rr, 16) == NULL)
  546.                   goto err;
  547.               rr->top = 16;
                     ^
  548.               bn_mul_comba8(rr->d, a->d, b->d);
  549.               goto end;

crypto/bn/bn_mul.c:601:5: Call
  599.   #endif
  600.       rr->neg = a->neg ^ b->neg;
  601.       bn_correct_top(rr);
             ^
  602.       if (r != rr && BN_copy(r, rr) == NULL)
  603.           goto err;

crypto/bn/bn_lib.c:915:1: <Offset trace>
913.   }
914.   
915. > void bn_correct_top(BIGNUM *a)
916.   {
917.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:915:1: Parameter `a->top`
    913.   }
    914.   
    915. > void bn_correct_top(BIGNUM *a)
    916.   {
    917.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:918:5: Assignment
    916.   {
    917.       BN_ULONG *ftl;
    918.       int tmp_top = a->top;
               ^
    919.   
    920.       if (tmp_top > 0) {

crypto/bn/bn_lib.c:915:1: <Length trace>
913.   }
914.   
915. > void bn_correct_top(BIGNUM *a)
916.   {
917.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:915:1: Parameter `*a->d`
    913.   }
    914.   
    915. > void bn_correct_top(BIGNUM *a)
    916.   {
    917.       BN_ULONG *ftl;

crypto/bn/bn_lib.c:921:14: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `BN_mul` 
    919.   
    920.       if (tmp_top > 0) {
    921.           for (ftl = &(a->d[tmp_top]); tmp_top > 0; tmp_top--) {
                        ^
    922.               ftl--;
    923.               if (*ftl != 0)
