crypto/pkcs12/p12_mutl.c:125: error: INTEGER_OVERFLOW_L2
  ([1, 9223372036854775806] + 1):signed32 by call to `pkcs12_gen_gost_mac_key`.
Showing all 7 steps of the trace


crypto/pkcs12/p12_mutl.c:108:9: Assignment
106.       saltlen = p12->mac->salt->length;
107.       if (!p12->mac->iter)
108.           iter = 1;
               ^
109.       else
110.           iter = ASN1_INTEGER_get(p12->mac->iter);

crypto/pkcs12/p12_mutl.c:125:14: Call
123.           && !getenv("LEGACY_GOST_PKCS12")) {
124.           md_size = TK26_MAC_KEY_LEN;
125.           if (!pkcs12_gen_gost_mac_key(pass, passlen, salt, saltlen, iter,
                    ^
126.                                        md_size, key, md_type)) {
127.               PKCS12err(PKCS12_F_PKCS12_GEN_MAC, PKCS12_R_KEY_GEN_ERROR);

crypto/pkcs12/p12_mutl.c:69:1: Parameter `iter`
  67.   # define TK26_MAC_KEY_LEN 32
  68.   
  69. > static int pkcs12_gen_gost_mac_key(const char *pass, int passlen,
  70.                                      const unsigned char *salt, int saltlen,
  71.                                      int iter, int keylen, unsigned char *key,

crypto/pkcs12/p12_mutl.c:80:10: Call
  78.       }
  79.   
  80.       if (!PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter,
                 ^
  81.                              digest, sizeof(out), out)) {
  82.           return 0;

crypto/evp/p5_crpt2.c:81:1: <LHS trace>
79.    */
80.   
81. > int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
82.                         const unsigned char *salt, int saltlen, int iter,
83.                         const EVP_MD *digest, int keylen, unsigned char *out)

crypto/evp/p5_crpt2.c:81:1: Parameter `iter`
    79.    */
    80.   
    81. > int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
    82.                         const unsigned char *salt, int saltlen, int iter,
    83.                         const EVP_MD *digest, int keylen, unsigned char *out)

crypto/evp/p5_crpt2.c:131:31: Binary operation: ([1, 9223372036854775806] + 1):signed32 by call to `pkcs12_gen_gost_mac_key` 
    129.           HMAC_CTX_cleanup(&hctx);
    130.           memcpy(p, digtmp, cplen);
    131.           for (j = 1; j < iter; j++) {
                                         ^
    132.               if (!HMAC_CTX_copy(&hctx, &hctx_tpl)) {
    133.                   HMAC_CTX_cleanup(&hctx_tpl);
