ssl/statem/statem_srvr.c:3020: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 67108856] by call to `srp_generate_server_master_secret`.
Showing all 20 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;

crypto/srp/srp_lib.c:224:10: Call
      222.           goto err;
      223.       /* Checks if B % N == 0 */
      224.       if (!BN_nnmod(r, B, N, bn_ctx))
                      ^
      225.           goto err;
      226.       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:137:1: Parameter `num->top`
          135.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
          136.    */
          137. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
          138.              BN_CTX *ctx)
          139.   {

crypto/bn/bn_div.c:182:17: Call
          180.       if (!no_branch && BN_ucmp(num, divisor) < 0) {
          181.           if (rm != NULL) {
          182.               if (BN_copy(rm, num) == NULL)
                                 ^
          183.                   return 0;
          184.           }

crypto/bn/bn_lib.c:312:1: <Offset trace>
310.   }
311.   
312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
313.   {
314.       bn_check_top(b);

crypto/bn/bn_lib.c:312:1: Parameter `b->top`
            310.   }
            311.   
            312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            313.   {
            314.       bn_check_top(b);

crypto/bn/bn_lib.c:312:1: <Length trace>
310.   }
311.   
312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
313.   {
314.       bn_check_top(b);

crypto/bn/bn_lib.c:312:1: Parameter `*a->d`
            310.   }
            311.   
            312. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            313.   {
            314.       bn_check_top(b);

crypto/bn/bn_lib.c:318:9: Call
            316.       if (a == b)
            317.           return a;
            318.       if (bn_wexpand(a, b->top) == NULL)
                           ^
            319.           return NULL;
            320.   

crypto/bn/bn_lib.c:940:1: Parameter `*a->d`
              938.   }
              939.   
              940. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
              941.   {
              942.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:322:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `srp_generate_server_master_secret` 
            320.   
            321.       if (b->top > 0)
            322.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                           ^
            323.   
            324.       if (BN_get_flags(b, BN_FLG_CONSTTIME) != 0)
