crypto/pkcs12/p12_mutl.c:116: 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:98:9: Assignment
96.       saltlen = p12->mac->salt->length;
97.       if (!p12->mac->iter)
98.           iter = 1;
               ^
99.       else
100.           iter = ASN1_INTEGER_get(p12->mac->iter);

crypto/pkcs12/p12_mutl.c:116:14: Call
114.           && !getenv("LEGACY_GOST_PKCS12")) {
115.           md_size = TK26_MAC_KEY_LEN;
116.           if (!pkcs12_gen_gost_mac_key(pass, passlen, salt, saltlen, iter,
                    ^
117.                                        md_size, key, md_type)) {
118.               PKCS12err(PKCS12_F_PKCS12_GEN_MAC, PKCS12_R_KEY_GEN_ERROR);

crypto/pkcs12/p12_mutl.c:49:1: Parameter `iter`
  47.   # define TK26_MAC_KEY_LEN 32
  48.   
  49. > static int pkcs12_gen_gost_mac_key(const char *pass, int passlen,
  50.                                      const unsigned char *salt, int saltlen,
  51.                                      int iter, int keylen, unsigned char *key,

crypto/pkcs12/p12_mutl.c:60:10: Call
  58.       }
  59.   
  60.       if (!PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter,
                 ^
  61.                              digest, sizeof(out), out)) {
  62.           return 0;

crypto/evp/p5_crpt2.c:32:1: <LHS trace>
30.    */
31.   
32. > int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
33.                         const unsigned char *salt, int saltlen, int iter,
34.                         const EVP_MD *digest, int keylen, unsigned char *out)

crypto/evp/p5_crpt2.c:32:1: Parameter `iter`
    30.    */
    31.   
    32. > int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
    33.                         const unsigned char *salt, int saltlen, int iter,
    34.                         const EVP_MD *digest, int keylen, unsigned char *out)

crypto/evp/p5_crpt2.c:90:31: Binary operation: ([1, 9223372036854775806] + 1):signed32 by call to `pkcs12_gen_gost_mac_key` 
    88.           HMAC_CTX_reset(hctx);
    89.           memcpy(p, digtmp, cplen);
    90.           for (j = 1; j < iter; j++) {
                                        ^
    91.               if (!HMAC_CTX_copy(hctx, hctx_tpl)) {
    92.                   HMAC_CTX_free(hctx);
