ssl/tls_srp.c:384: error: BUFFER_OVERRUN_L3
  Offset: [31, +oo] Size: [0, 8388607] by call to `SRP_Calc_client_key`.
Showing all 18 steps of the trace


ssl/tls_srp.c:373:14: Call
371.       if (SRP_Verify_B_mod_N(s->srp_ctx.B, s->srp_ctx.N) == 0)
372.           goto err;
373.       if ((u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N)) == NULL)
                    ^
374.           goto err;
375.       if (s->srp_ctx.SRP_give_srp_client_pwd_callback == NULL)

crypto/srp/srp_lib.c:136:14: Call
  134.       EVP_DigestFinal_ex(ctxt, cu, NULL);
  135.   
  136.       if ((u = BN_bin2bn(cu, sizeof(cu), NULL)) == NULL)
                      ^
  137.           goto err;
  138.       if (BN_is_zero(u)) {

crypto/bn/bn_lib.c:559:9: Assignment
    557.       n = len;
    558.       if (n == 0) {
    559.           ret->top = 0;
                   ^
    560.           return (ret);
    561.       }

ssl/tls_srp.c:384:14: Call
382.       if ((x = SRP_Calc_x(s->srp_ctx.s, s->srp_ctx.login, passwd)) == NULL)
383.           goto err;
384.       if ((K = SRP_Calc_client_key(s->srp_ctx.N, s->srp_ctx.B, s->srp_ctx.g, x,
                    ^
385.                                    s->srp_ctx.a, u)) == NULL)
386.           goto err;

crypto/srp/srp_lib.c:257:1: Parameter `u->top`
  255.   }
  256.   
  257. > BIGNUM *SRP_Calc_client_key(BIGNUM *N, BIGNUM *B, BIGNUM *g, BIGNUM *x,
  258.                               BIGNUM *a, BIGNUM *u)
  259.   {

crypto/srp/srp_lib.c:281:10: Call
  279.       if (!BN_mod_sub(tmp, B, tmp2, N, bn_ctx))
  280.           goto err;
  281.       if (!BN_mod_mul(tmp3, u, x, N, bn_ctx))
                  ^
  282.           goto err;
  283.       if (!BN_mod_add(tmp2, a, tmp3, N, bn_ctx))

crypto/bn/bn_mod.c:179:1: Parameter `a->top`
    177.   
    178.   /* slow but works */
    179. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
    180.                  BN_CTX *ctx)
    181.   {

crypto/bn/bn_mod.c:193:14: Call
    191.           goto err;
    192.       if (a == b) {
    193.           if (!BN_sqr(t, a, ctx))
                        ^
    194.               goto err;
    195.       } else {

crypto/bn/bn_sqr.c:66:1: Parameter `a->top`
      64.    * I've just gone over this and it is now %20 faster on x86 - eay - 27 Jun 96
      65.    */
      66. > int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
      67.   {
      68.       int max, al;

crypto/bn/bn_sqr.c:74:5: Assignment
      72.       bn_check_top(a);
      73.   
      74.       al = a->top;
                ^
      75.       if (al <= 0) {
      76.           r->top = 0;

crypto/bn/bn_sqr.c:123:17: Call
      121.                   if (bn_wexpand(tmp, max) == NULL)
      122.                       goto err;
      123.                   bn_sqr_normal(rr->d, a->d, al, tmp->d);
                             ^
      124.               }
      125.           }

crypto/bn/bn_sqr.c:153:1: <Offset trace>
151.   
152.   /* tmp must have 2*n words */
153. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
154.   {
155.       int i, j, max;

crypto/bn/bn_sqr.c:153:1: Parameter `n`
        151.   
        152.   /* tmp must have 2*n words */
        153. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
        154.   {
        155.       int i, j, max;

crypto/bn/bn_sqr.c:159:5: Assignment
        157.       BN_ULONG *rp;
        158.   
        159.       max = n * 2;
                   ^
        160.       ap = a;
        161.       rp = r;

crypto/bn/bn_sqr.c:153:1: <Length trace>
151.   
152.   /* tmp must have 2*n words */
153. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
154.   {
155.       int i, j, max;

crypto/bn/bn_sqr.c:153:1: Parameter `*r`
        151.   
        152.   /* tmp must have 2*n words */
        153. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
        154.   {
        155.       int i, j, max;

crypto/bn/bn_sqr.c:161:5: Assignment
        159.       max = n * 2;
        160.       ap = a;
        161.       rp = r;
                   ^
        162.       rp[0] = rp[max - 1] = 0;
        163.       rp++;

crypto/bn/bn_sqr.c:162:13: Array access: Offset: [31, +oo] Size: [0, 8388607] by call to `SRP_Calc_client_key` 
        160.       ap = a;
        161.       rp = r;
        162.       rp[0] = rp[max - 1] = 0;
                           ^
        163.       rp++;
        164.       j = n;
