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


crypto/ec/ecp_smpl.c:149:13: Call
147.   
148.       BN_CTX_start(ctx);
149.       tmp_a = BN_CTX_get(ctx);
                   ^
150.       if (tmp_a == NULL)
151.           goto err;

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:398:1: Parameter `*a->d`
    396.   }
    397.   
    398. > int BN_set_word(BIGNUM *a, BN_ULONG w)
    399.   {
    400.       bn_check_top(a);

crypto/bn/bn_lib.c:401:9: Call
    399.   {
    400.       bn_check_top(a);
    401.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                   ^
    402.           return (0);
    403.       a->neg = 0;

crypto/bn/bn_lcl.h:658:1: Parameter `*a->d`
      656.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
      657.   
      658. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
      659.   {
      660.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/ec/ecp_smpl.c:159:10: Call
157.   
158.       /* group->a */
159.       if (!BN_nnmod(tmp_a, a, p, ctx))
                ^
160.           goto err;
161.       if (group->meth->field_encode) {

crypto/bn/bn_mod.c:13:1: Parameter `*r->d`
  11.   #include "bn_lcl.h"
  12.   
  13. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
  14.   {
  15.       /*

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:140:1: Parameter `*rm->d`
    138.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
    139.    */
    140. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
    141.              BN_CTX *ctx)
    142.   {

crypto/bn/bn_div.c:406:9: Call
    404.            */
    405.           int neg = num->neg;
    406.           BN_rshift(rm, snum, norm_shift);
                   ^
    407.           if (!BN_is_zero(rm))
    408.               rm->neg = neg;

crypto/bn/bn_shift.c:122:1: Parameter `*r->d`
      120.   }
      121.   
      122. > int BN_rshift(BIGNUM *r, const BIGNUM *a, int n)
      123.   {
      124.       int i, j, nw, lb, rb;

crypto/bn/bn_shift.c:140:9: Call
      138.       lb = BN_BITS2 - rb;
      139.       if (nw >= a->top || a->top == 0) {
      140.           BN_zero(r);
                     ^
      141.           return 1;
      142.       }

crypto/bn/bn_lib.c:398:1: <Length trace>
396.   }
397.   
398. > int BN_set_word(BIGNUM *a, BN_ULONG w)
399.   {
400.       bn_check_top(a);

crypto/bn/bn_lib.c:398:1: Parameter `*a->d`
        396.   }
        397.   
        398. > int BN_set_word(BIGNUM *a, BN_ULONG w)
        399.   {
        400.       bn_check_top(a);

crypto/bn/bn_lib.c:401:9: Call
        399.   {
        400.       bn_check_top(a);
        401.       if (bn_expand(a, (int)sizeof(BN_ULONG) * 8) == NULL)
                       ^
        402.           return (0);
        403.       a->neg = 0;

crypto/bn/bn_lcl.h:658:1: Parameter `*a->d`
          656.                            const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx);
          657.   
          658. > static ossl_inline BIGNUM *bn_expand(BIGNUM *a, int bits)
          659.   {
          660.       if (bits > (INT_MAX - BN_BITS2 + 1))

crypto/bn/bn_lib.c:404:5: Array access: Offset: 0 Size: [0, 8388607] by call to `BN_nnmod` 
        402.           return (0);
        403.       a->neg = 0;
        404.       a->d[0] = w;
                   ^
        405.       a->top = (w ? 1 : 0);
        406.       bn_check_top(a);
