ssl/statem/statem_srvr.c:3020: error: BUFFER_OVERRUN_L3
  Offset: [16, +oo] (⇐ 1 + [15, +oo]) Size: [0, 8388607] by call to `srp_generate_server_master_secret`.
Showing all 29 steps of the trace


ssl/statem/statem_srvr.c:3003:25: Call
3001.           return 0;
3002.       }
3003.       if ((s->srp_ctx.A = BN_bin2bn(data, i, NULL)) == NULL) {
                                ^
3004.           *al = SSL_AD_INTERNAL_ERROR;
3005.           SSLerr(SSL_F_TLS_PROCESS_CKE_SRP, ERR_R_BN_LIB);

crypto/bn/bn_lib.c:416:9: Assignment
  414.       n = len;
  415.       if (n == 0) {
  416.           ret->top = 0;
                 ^
  417.           return ret;
  418.       }

ssl/statem/statem_srvr.c:3020:10: Call
3018.       }
3019.   
3020.       if (!srp_generate_server_master_secret(s)) {
                 ^
3021.           SSLerr(SSL_F_TLS_PROCESS_CKE_SRP, ERR_R_INTERNAL_ERROR);
3022.           return 0;

ssl/tls_srp.c:245:1: Parameter `s->srp_ctx.A->top`
  243.   }
  244.   
  245. > int srp_generate_server_master_secret(SSL *s)
  246.   {
  247.       BIGNUM *K = NULL, *u = NULL;

ssl/tls_srp.c:251:10: Call
  249.       unsigned char *tmp = NULL;
  250.   
  251.       if (!SRP_Verify_A_mod_N(s->srp_ctx.A, s->srp_ctx.N))
                  ^
  252.           goto err;
  253.       if ((u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N)) == NULL)

crypto/srp/srp_lib.c:233:1: Parameter `A->top`
    231.   }
    232.   
    233. > int SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N)
    234.   {
    235.       /* Checks if A % N == 0 */

crypto/srp/srp_lib.c:236:12: Call
    234.   {
    235.       /* Checks if A % N == 0 */
    236.       return SRP_Verify_B_mod_N(A, N);
                      ^
    237.   }
    238.   

crypto/srp/srp_lib.c:212:1: Parameter `B->top`
      210.   }
      211.   
      212. > int SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N)
      213.   {
      214.       BIGNUM *r;

ssl/tls_srp.c:253:14: Call
  251.       if (!SRP_Verify_A_mod_N(s->srp_ctx.A, s->srp_ctx.N))
  252.           goto err;
  253.       if ((u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N)) == NULL)
                      ^
  254.           goto err;
  255.       if ((K = SRP_Calc_server_key(s->srp_ctx.A, s->srp_ctx.v, u, s->srp_ctx.b,

crypto/srp/srp_lib.c:47:1: Parameter `A->top`
    45.   }
    46.   
    47. > BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N)
    48.   {
    49.       /* k = SHA1(PAD(A) || PAD(B) ) -- tls-srp draft 8 */

crypto/srp/srp_lib.c:50:12: Call
    48.   {
    49.       /* k = SHA1(PAD(A) || PAD(B) ) -- tls-srp draft 8 */
    50.       return srp_Calc_xy(A, B, N);
                     ^
    51.   }
    52.   

crypto/srp/srp_lib.c:19:1: Parameter `x->top`
      17.   /* calculate = SHA1(PAD(x) || PAD(y)) */
      18.   
      19. > static BIGNUM *srp_Calc_xy(const BIGNUM *x, const BIGNUM *y, const BIGNUM *N)
      20.   {
      21.       unsigned char digest[SHA_DIGEST_LENGTH];

ssl/tls_srp.c:255:14: Call
  253.       if ((u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N)) == NULL)
  254.           goto err;
  255.       if ((K = SRP_Calc_server_key(s->srp_ctx.A, s->srp_ctx.v, u, s->srp_ctx.b,
                      ^
  256.                                    s->srp_ctx.N)) == NULL)
  257.           goto err;

crypto/srp/srp_lib.c:53:1: Parameter `A->top`
    51.   }
    52.   
    53. > BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,
    54.                               const BIGNUM *b, const BIGNUM *N)
    55.   {

crypto/srp/srp_lib.c:69:10: Call
    67.       if (!BN_mod_exp(tmp, v, u, N, bn_ctx))
    68.           goto err;
    69.       if (!BN_mod_mul(tmp, A, tmp, N, bn_ctx))
                   ^
    70.           goto err;
    71.   

crypto/bn/bn_mod.c:73:1: Parameter `a->top`
      71.   
      72.   /* slow but works */
      73. > int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,
      74.                  BN_CTX *ctx)
      75.   {

crypto/bn/bn_mod.c:87:14: Call
      85.           goto err;
      86.       if (a == b) {
      87.           if (!BN_sqr(t, a, ctx))
                         ^
      88.               goto err;
      89.       } else {

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

crypto/bn/bn_sqr.c:25:5: Assignment
        23.       bn_check_top(a);
        24.   
        25.       al = a->top;
                  ^
        26.       if (al <= 0) {
        27.           r->top = 0;

crypto/bn/bn_sqr.c:74:17: Call
        72.                   if (bn_wexpand(tmp, max) == NULL)
        73.                       goto err;
        74.                   bn_sqr_normal(rr->d, a->d, al, tmp->d);
                              ^
        75.               }
        76.           }

crypto/bn/bn_sqr.c:105:1: <Offset trace>
103.   
104.   /* tmp must have 2*n words */
105. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
106.   {
107.       int i, j, max;

crypto/bn/bn_sqr.c:105:1: Parameter `n`
          103.   
          104.   /* tmp must have 2*n words */
          105. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
          106.   {
          107.       int i, j, max;

crypto/bn/bn_sqr.c:116:5: Assignment
          114.       rp[0] = rp[max - 1] = 0;
          115.       rp++;
          116.       j = n;
                     ^
          117.   
          118.       if (--j > 0) {

crypto/bn/bn_sqr.c:118:9: Assignment
          116.       j = n;
          117.   
          118.       if (--j > 0) {
                         ^
          119.           ap++;
          120.           rp[j] = bn_mul_words(rp, ap, j, ap[-1]);

crypto/bn/bn_sqr.c:105:1: <Length trace>
103.   
104.   /* tmp must have 2*n words */
105. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
106.   {
107.       int i, j, max;

crypto/bn/bn_sqr.c:105:1: Parameter `*r`
          103.   
          104.   /* tmp must have 2*n words */
          105. > void bn_sqr_normal(BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp)
          106.   {
          107.       int i, j, max;

crypto/bn/bn_sqr.c:113:5: Assignment
          111.       max = n * 2;
          112.       ap = a;
          113.       rp = r;
                     ^
          114.       rp[0] = rp[max - 1] = 0;
          115.       rp++;

crypto/bn/bn_sqr.c:115:5: Assignment
          113.       rp = r;
          114.       rp[0] = rp[max - 1] = 0;
          115.       rp++;
                     ^
          116.       j = n;
          117.   

crypto/bn/bn_sqr.c:120:9: Array access: Offset: [16, +oo] (⇐ 1 + [15, +oo]) Size: [0, 8388607] by call to `srp_generate_server_master_secret` 
          118.       if (--j > 0) {
          119.           ap++;
          120.           rp[j] = bn_mul_words(rp, ap, j, ap[-1]);
                         ^
          121.           rp += 2;
          122.       }
