ssl/statem/statem_srvr.c:3298: 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: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:233:17: Call
          231.       if (!no_branch && BN_ucmp(num, divisor) < 0) {
          232.           if (rm != NULL) {
          233.               if (BN_copy(rm, num) == NULL)
                                 ^
          234.                   return 0;
          235.           }

crypto/bn/bn_lib.c:281:1: <Offset trace>
279.   }
280.   
281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
282.   {
283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: Parameter `b->top`
            279.   }
            280.   
            281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            282.   {
            283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: <Length trace>
279.   }
280.   
281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
282.   {
283.       bn_check_top(b);

crypto/bn/bn_lib.c:281:1: Parameter `*a->d`
            279.   }
            280.   
            281. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            282.   {
            283.       bn_check_top(b);

crypto/bn/bn_lib.c:287:9: Call
            285.       if (a == b)
            286.           return a;
            287.       if (bn_wexpand(a, b->top) == NULL)
                           ^
            288.           return NULL;
            289.   

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_lib.c:291:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `srp_generate_server_master_secret` 
            289.   
            290.       if (b->top > 0)
            291.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                           ^
            292.   
            293.       a->neg = b->neg;
