ssl/statem/statem_srvr.c:2448: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, 8388607] by call to `srp_generate_server_master_secret`.
Showing all 22 steps of the trace


ssl/statem/statem_srvr.c:2430:29: Call
2428.               goto f_err;
2429.           }
2430.           if ((s->srp_ctx.A = BN_bin2bn(data, i, NULL)) == NULL) {
                                    ^
2431.               SSLerr(SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE, ERR_R_BN_LIB);
2432.               goto err;

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

ssl/statem/statem_srvr.c:2448:14: Call
2446.           }
2447.   
2448.           if (!srp_generate_server_master_secret(s)) {
                     ^
2449.               SSLerr(SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE, ERR_R_INTERNAL_ERROR);
2450.               goto err;

ssl/tls_srp.c:335:1: Parameter `s->srp_ctx.A->top`
  333.   }
  334.   
  335. > int srp_generate_server_master_secret(SSL *s)
  336.   {
  337.       BIGNUM *K = NULL, *u = NULL;

ssl/tls_srp.c:341:10: Call
  339.       unsigned char *tmp = NULL;
  340.   
  341.       if (!SRP_Verify_A_mod_N(s->srp_ctx.A, s->srp_ctx.N))
                  ^
  342.           goto err;
  343.       if ((u = SRP_Calc_u(s->srp_ctx.A, s->srp_ctx.B, s->srp_ctx.N)) == NULL)

crypto/srp/srp_lib.c:318:1: Parameter `A->top`
    316.   }
    317.   
    318. > int SRP_Verify_A_mod_N(BIGNUM *A, BIGNUM *N)
    319.   {
    320.       /* Checks if A % N == 0 */

crypto/srp/srp_lib.c:321:12: Call
    319.   {
    320.       /* Checks if A % N == 0 */
    321.       return SRP_Verify_B_mod_N(A, N);
                      ^
    322.   }
    323.   

crypto/srp/srp_lib.c:297:1: Parameter `B->top`
      295.   }
      296.   
      297. > int SRP_Verify_B_mod_N(BIGNUM *B, BIGNUM *N)
      298.   {
      299.       BIGNUM *r;

crypto/srp/srp_lib.c:309:10: Call
      307.           goto err;
      308.       /* Checks if B % N == 0 */
      309.       if (!BN_nnmod(r, B, N, bn_ctx))
                      ^
      310.           goto err;
      311.       ret = !BN_is_zero(r);

crypto/bn/bn_mod.c:119:1: Parameter `m->top`
        117.   #include "bn_lcl.h"
        118.   
        119. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
        120.   {
        121.       /*

crypto/bn/bn_mod.c:126:11: Call
        124.        */
        125.   
        126.       if (!(BN_mod(r, m, d, ctx)))
                         ^
        127.           return 0;
        128.       if (!r->neg)

crypto/bn/bn_div.c:189:1: Parameter `num->top`
          187.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
          188.    */
          189. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
          190.              BN_CTX *ctx)
          191.   {

crypto/bn/bn_div.c:259:11: Call
          257.       sdiv->neg = 0;
          258.       norm_shift += BN_BITS2;
          259.       if (!(BN_lshift(snum, num, norm_shift)))
                           ^
          260.           goto err;
          261.       snum->neg = 0;

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

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

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

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

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

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

crypto/bn/bn_lib.c:995:1: Parameter `*a->d`
              993.   }
              994.   
              995. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
              996.   {
              997.       return (words <= a->dmax) ? a : bn_expand2(a, words);

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

crypto/bn/bn_shift.c:159:13: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `srp_generate_server_master_secret` 
            157.           for (i = a->top - 1; i >= 0; i--) {
            158.               l = f[i];
            159.               t[nw + i + 1] |= (l >> rb) & BN_MASK2;
                               ^
            160.               t[nw + i] = (l << lb) & BN_MASK2;
            161.           }
