crypto/pem/pem_pkey.c:130: error: BUFFER_OVERRUN_L3
  Offset: [-12, +oo] Size: [1, 2147483644] by call to `pem_check_suffix`.
Showing all 8 steps of the trace


crypto/pem/pem_pkey.c:88:10: Call
86.       EVP_PKEY *ret = NULL;
87.   
88.       if (!PEM_bytes_read_bio(&data, &len, &nm, PEM_STRING_EVP_PKEY, bp, cb, u))
               ^
89.           return NULL;
90.       p = data;

crypto/pem/pem_lib.c:276:1: Parameter `**pnm`
  274.   }
  275.   
  276. > int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm,
  277.                          const char *name, BIO *bp, pem_password_cb *cb,
  278.                          void *u)

crypto/pem/pem_pkey.c:130:24: Call
128.           }
129.           PKCS8_PRIV_KEY_INFO_free(p8inf);
130.       } else if ((slen = pem_check_suffix(nm, "PRIVATE KEY")) > 0) {
                              ^
131.           const EVP_PKEY_ASN1_METHOD *ameth;
132.           ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);

crypto/pem/pem_lib.c:855:1: <Length trace>
853.    */
854.   
855. > int pem_check_suffix(const char *pem_str, const char *suffix)
856.   {
857.       int pem_len = strlen(pem_str);

crypto/pem/pem_lib.c:855:1: Parameter `*pem_str`
  853.    */
  854.   
  855. > int pem_check_suffix(const char *pem_str, const char *suffix)
  856.   {
  857.       int pem_len = strlen(pem_str);

crypto/pem/pem_lib.c:862:5: Assignment
  860.       if (suffix_len + 1 >= pem_len)
  861.           return 0;
  862.       p = pem_str + pem_len - suffix_len;
             ^
  863.       if (strcmp(p, suffix))
  864.           return 0;

crypto/pem/pem_lib.c:865:5: Assignment
  863.       if (strcmp(p, suffix))
  864.           return 0;
  865.       p--;
             ^
  866.       if (*p != ' ')
  867.           return 0;

crypto/pem/pem_lib.c:866:9: Array access: Offset: [-12, +oo] Size: [1, 2147483644] by call to `pem_check_suffix` 
  864.           return 0;
  865.       p--;
  866.       if (*p != ' ')
                 ^
  867.           return 0;
  868.       return p - pem_str;
