test/bntest.c:237: error: BUFFER_OVERRUN_L3
  Offset added: [0, 392] Size: [0, 67108856] by call to `BN_lshift`.
Showing all 11 steps of the trace


test/bntest.c:69:1: Assignment
67.   } MPITEST;
68.   
69. > static const int NUM0 = 100;           /* number of tests */
70.   static const int NUM1 = 50;            /* additional tests for some functions */
71.   static FILE *fp;

test/bntest.c:237:13: Call
235.               BN_bntest_rand(a, 400, 0, 0);
236.               BN_copy(b, a);
237.               BN_lshift(a, a, i);
                   ^
238.               BN_add_word(a, i);
239.           } else

crypto/bn/bn_shift.c:83:1: <Offset trace>
81.   }
82.   
83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
84.   {
85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:83:1: Parameter `n`
  81.   }
  82.   
  83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
  84.   {
  85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:97:5: Assignment
  95.       }
  96.   
  97.       nw = n / BN_BITS2;
             ^
  98.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
  99.           return (0);

crypto/bn/bn_shift.c:83:1: <Length trace>
81.   }
82.   
83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
84.   {
85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:83:1: Parameter `*r->d`
  81.   }
  82.   
  83. > int BN_lshift(BIGNUM *r, const BIGNUM *a, int n)
  84.   {
  85.       int i, nw, lb, rb;

crypto/bn/bn_shift.c:98:9: Call
  96.   
  97.       nw = n / BN_BITS2;
  98.       if (bn_wexpand(r, a->top + nw + 1) == NULL)
                 ^
  99.           return (0);
  100.       r->neg = a->neg;

crypto/bn/bn_lib.c:1016:1: Parameter `*a->d`
    1014.   }
    1015.   
    1016. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
    1017.   {
    1018.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_shift.c:104:5: Assignment
  102.       rb = BN_BITS2 - lb;
  103.       f = a->d;
  104.       t = r->d;
             ^
  105.       t[a->top + nw] = 0;
  106.       if (lb == 0)

crypto/bn/bn_shift.c:115:5: Array access: Offset added: [0, 392] Size: [0, 67108856] by call to `BN_lshift` 
  113.               t[nw + i] = (l << lb) & BN_MASK2;
  114.           }
  115.       memset(t, 0, sizeof(*t) * nw);
             ^
  116.       r->top = a->top + nw + 1;
  117.       bn_correct_top(r);
