crypto/ec/ecp_smpl.c:693: error: BUFFER_OVERRUN_L3
  Offset: 0 Size: [0, 8388607] by call to `BN_mod_sub_quick`.
Showing all 15 steps of the trace


crypto/ec/ecp_smpl.c:632:10: Call
630.   
631.       BN_CTX_start(ctx);
632.       n0 = BN_CTX_get(ctx);
                ^
633.       n1 = BN_CTX_get(ctx);
634.       n2 = BN_CTX_get(ctx);

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:357:1: Parameter `*a->d`
    355.   }
    356.   
    357. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    358.   {
    359.       bn_check_top(a);

crypto/bn/bn_lib.c:360:9: Call
    358.   {
    359.       bn_check_top(a);
    360.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    361.           return 0;
    362.       a->neg = 0;

crypto/bn/bn_lcl.h:651:1: Parameter `*a->d`
      649.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
      650.   
      651. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      652.   {
      653.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/ec/ecp_smpl.c:693:10: Call
691.   
692.       /* n5, n6 */
693.       if (!BN_mod_sub_quick(n5, n1, n3, p))
                ^
694.           goto end;
695.       if (!BN_mod_sub_quick(n6, n2, n4, p))

crypto/bn/bn_mod.c:62:1: Parameter `*r->d`
  60.    * less than m
  61.    */
  62. > int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  63.                        const BIGNUM *m)
  64.   {

crypto/bn/bn_mod.c:65:10: Call
  63.                        const BIGNUM *m)
  64.   {
  65.       if (!BN_sub(r, a, b))
                 ^
  66.           return 0;
  67.       if (r->neg)

crypto/bn/bn_add.c:45:1: Parameter `*r->d`
    43.   
    44.   /* signed sub of b from a. */
    45. > int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
    46.   {
    47.       int ret, r_neg, cmp_res;

crypto/bn/bn_add.c:65:13: Call
    63.           } else {
    64.               r_neg = 0;
    65.               BN_zero(r);
                      ^
    66.               ret = 1;
    67.           }

crypto/bn/bn_lib.c:357:1: <Length trace>
355.   }
356.   
357. > int BN_set_word(BIGNUM *a, BN_ULONG w)
358.   {
359.       bn_check_top(a);

crypto/bn/bn_lib.c:357:1: Parameter `*a->d`
      355.   }
      356.   
      357. > int BN_set_word(BIGNUM *a, BN_ULONG w)
      358.   {
      359.       bn_check_top(a);

crypto/bn/bn_lib.c:360:9: Call
      358.   {
      359.       bn_check_top(a);
      360.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                     ^
      361.           return 0;
      362.       a->neg = 0;

crypto/bn/bn_lcl.h:651:1: Parameter `*a->d`
        649.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
        650.   
        651. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
        652.   {
        653.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_lib.c:363:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_mod_sub_quick` 
      361.           return 0;
      362.       a->neg = 0;
      363.       a->d[0] = w;
                 ^
      364.       a->top = (w ? 1 : 0);
      365.       bn_check_top(a);
