ssl/statem/statem_srvr.c:3298: 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:3280:25: Call
3278.           return 0;
3279.       }
3280.       if ((s->srp_ctx.A = BN_bin2bn(data, i, NULL)) == NULL) {
                                ^
3281.           SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_TLS_PROCESS_CKE_SRP,
3282.                    ERR_R_BN_LIB);

crypto/bn/bn_lib.c:389:9: Assignment
  387.       n = len;
  388.       if (n == 0) {
  389.           ret->top = 0;
                 ^
  390.           return ret;
  391.       }

ssl/statem/statem_srvr.c:3298:10: Call
3296.       }
3297.   
3298.       if (!srp_generate_server_master_secret(s)) {
                 ^
3299.           /* SSLfatal() already called */
3300.           return 0;

ssl/tls_srp.c:249:1: Parameter `s->srp_ctx.A->top`
  247.   }
  248.   
  249. > int srp_generate_server_master_secret(SSL *s)
  250.   {
  251.       BIGNUM *K = NULL, *u = NULL;

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

crypto/srp/srp_lib.c:237:1: Parameter `A->top`
    235.   }
    236.   
    237. > int SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N)
    238.   {
    239.       /* Checks if A % N == 0 */

crypto/srp/srp_lib.c:240:12: Call
    238.   {
    239.       /* Checks if A % N == 0 */
    240.       return SRP_Verify_B_mod_N(A, N);
                      ^
    241.   }
    242.   

crypto/srp/srp_lib.c:216:1: Parameter `B->top`
      214.   }
      215.   
      216. > int SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N)
      217.   {
      218.       BIGNUM *r;

crypto/srp/srp_lib.c:228:10: Call
      226.           goto err;
      227.       /* Checks if B % N == 0 */
      228.       if (!BN_nnmod(r, B, N, bn_ctx))
                      ^
      229.           goto err;
      230.       ret = !BN_is_zero(r);

crypto/bn/bn_mod.c:13:1: Parameter `m->top`
        11.   #include "bn_lcl.h"
        12.   
        13. > int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
        14.   {
        15.       /*

crypto/bn/bn_mod.c:20:11: Call
        18.        */
        19.   
        20.       if (!(BN_mod(r, m, d, ctx)))
                        ^
        21.           return 0;
        22.       if (!r->neg)

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

crypto/bn/bn_div.c:255:11: Call
          253.       sdiv->neg = 0;
          254.       norm_shift += BN_BITS2;
          255.       if (!(BN_lshift(snum, num, norm_shift)))
                           ^
          256.           goto err;
          257.       snum->neg = 0;

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:939:1: Parameter `*a->d`
              937.   }
              938.   
              939. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
              940.   {
              941.       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:112:13: Array access: Offset: [1, +oo] Size: [0, 8388607] by call to `srp_generate_server_master_secret` 
            110.           for (i = a->top - 1; i >= 0; i--) {
            111.               l = f[i];
            112.               t[nw + i + 1] |= (l >> rb) & BN_MASK2;
                               ^
            113.               t[nw + i] = (l << lb) & BN_MASK2;
            114.           }
