ssl/statem/statem_srvr.c:2946: 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:2930:25: Call
2928.           return 0;
2929.       }
2930.       if ((s->srp_ctx.A = BN_bin2bn(data, i, NULL)) == NULL) {
                                ^
2931.           SSLerr(SSL_F_TLS_PROCESS_CKE_SRP, ERR_R_BN_LIB);
2932.           return 0;

crypto/bn/bn_lib.c:424:9: Assignment
  422.       n = len;
  423.       if (n == 0) {
  424.           ret->top = 0;
                 ^
  425.           return (ret);
  426.       }

ssl/statem/statem_srvr.c:2946:10: Call
2944.       }
2945.   
2946.       if (!srp_generate_server_master_secret(s)) {
                 ^
2947.           SSLerr(SSL_F_TLS_PROCESS_CKE_SRP, ERR_R_INTERNAL_ERROR);
2948.           return 0;

ssl/tls_srp.c:284:1: Parameter `s->srp_ctx.A->top`
  282.   }
  283.   
  284. > int srp_generate_server_master_secret(SSL *s)
  285.   {
  286.       BIGNUM *K = NULL, *u = NULL;

ssl/tls_srp.c:290:10: Call
  288.       unsigned char *tmp = NULL;
  289.   
  290.       if (!SRP_Verify_A_mod_N(s->srp_ctx.A, s->srp_ctx.N))
                  ^
  291.           goto err;
  292.       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:140:1: Parameter `num->top`
          138.    * If 'dv' or 'rm' is NULL, the respective value is not returned.
          139.    */
          140. > int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
          141.              BN_CTX *ctx)
          142.   {

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

crypto/bn/bn_lib.c:323:1: <Offset trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `b->top`
            321.   }
            322.   
            323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            324.   {
            325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: <Length trace>
321.   }
322.   
323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
324.   {
325.       bn_check_top(b);

crypto/bn/bn_lib.c:323:1: Parameter `*a->d`
            321.   }
            322.   
            323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
            324.   {
            325.       bn_check_top(b);

crypto/bn/bn_lib.c:329:9: Call
            327.       if (a == b)
            328.           return a;
            329.       if (bn_wexpand(a, b->top) == NULL)
                           ^
            330.           return NULL;
            331.   

crypto/bn/bn_lib.c:948:1: Parameter `*a->d`
              946.   }
              947.   
              948. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
              949.   {
              950.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:333:9: Array access: Offset added: [8, +oo] Size: [0, 67108856] by call to `srp_generate_server_master_secret` 
            331.   
            332.       if (b->top > 0)
            333.           memcpy(a->d, b->d, sizeof(b->d[0]) * b->top);
                           ^
            334.   
            335.       a->top = b->top;
