crypto/ec/ecp_smpl.c:954: error: BUFFER_OVERRUN_L3
  Offset added: [0, 24] Size: [0, 67108856] by call to `BN_mod_lshift_quick`.
Showing all 12 steps of the trace


crypto/ec/ecp_smpl.c:954:10: Call
952.       if (!field_sqr(group, n0, n3, ctx))
953.           goto err;
954.       if (!BN_mod_lshift_quick(n3, n0, 3, p))
                ^
955.           goto err;
956.       /* n3 = 8 * Y_a^4 */

crypto/bn/bn_mod.c:264:1: Parameter `n`
  262.    * m
  263.    */
  264. > int BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m)
  265.   {
  266.       if (r != a) {

crypto/bn/bn_mod.c:287:18: Call
  285.   
  286.           if (max_shift) {
  287.               if (!BN_lshift(r, r, max_shift))
                          ^
  288.                   return 0;
  289.               n -= max_shift;

crypto/bn/bn_shift.c:129:1: <Offset trace>
127.   }
128.   
129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
130.   {
131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:129:1: Parameter `n`
    127.   }
    128.   
    129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
    130.   {
    131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:144:5: Assignment
    142.   
    143.       r->neg = a->neg;
    144.       nw = n / BN_BITS2;
               ^
    145.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
    146.           return (0);

crypto/bn/bn_shift.c:129:1: <Length trace>
127.   }
128.   
129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
130.   {
131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:129:1: Parameter `*r->d`
    127.   }
    128.   
    129. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
    130.   {
    131.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:145:9: Call
    143.       r->neg = a->neg;
    144.       nw = n / BN_BITS2;
    145.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
                   ^
    146.           return (0);
    147.       lb = n % BN_BITS2;

crypto/bn/bn_lib.c:1071:1: Parameter `*a->d`
      1069.   }
      1070.   
      1071. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
      1072.   {
      1073.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_shift.c:150:5: Assignment
    148.       rb = BN_BITS2 - lb;
    149.       f = a->d;
    150.       t = r->d;
               ^
    151.       t[a->top + nw] = 0;
    152.       if (lb == 0)

crypto/bn/bn_shift.c:161:5: Array access: Offset added: [0, 24] Size: [0, 67108856] by call to `BN_mod_lshift_quick` 
    159.               t[nw + i] = (l << lb) & BN_MASK2;
    160.           }
    161.       memset(t, 0, sizeof(*t) * nw);
               ^
    162.       r->top = a->top + nw + 1;
    163.       bn_correct_top(r);
