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


crypto/pem/pem_pkey.c:35:10: Call
33.       EVP_PKEY *ret = NULL;
34.   
35.       if (!PEM_bytes_read_bio_secmem(&data, &len, &nm, PEM_STRING_EVP_PKEY, bp,
               ^
36.   				   cb, u))
37.           return NULL;

crypto/pem/pem_lib.c:290:12: Call
  288.                                 const char *name, BIO *bp, pem_password_cb *cb,
  289.                                 void *u) {
  290.       return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u,
                    ^
  291.                                       PEM_FLAG_SECURE | PEM_FLAG_EAY_COMPATIBLE);
  292.   }

crypto/pem/pem_lib.c:252:14: Call
    250.           pem_free(header, flags, 0);
    251.           pem_free(data, flags, len);
    252.           if (!PEM_read_bio_ex(bp, &nm, &header, &data, &len, flags)) {
                        ^
    253.               if (ERR_GET_REASON(ERR_peek_error()) == PEM_R_NO_START_LINE)
    254.                   ERR_add_error_data(2, "Expecting: ", name);

crypto/pem/pem_lib.c:951:5: Assignment
      949.       }
      950.       BIO_read(headerB, *header, headerlen);
      951.       (*header)[headerlen] = '\0';
                 ^
      952.       BIO_read(dataB, *data, len);
      953.       *len_out = len;

crypto/pem/pem_pkey.c:79:24: Call
77.           }
78.           PKCS8_PRIV_KEY_INFO_free(p8inf);
79.       } else if ((slen = pem_check_suffix(nm, "PRIVATE KEY")) > 0) {
                             ^
80.           const EVP_PKEY_ASN1_METHOD *ameth;
81.           ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);

crypto/pem/pem_lib.c:978:1: <Length trace>
976.    */
977.   
978. > int pem_check_suffix(const char *pem_str, const char *suffix)
979.   {
980.       int pem_len = strlen(pem_str);

crypto/pem/pem_lib.c:978:1: Parameter `*pem_str`
  976.    */
  977.   
  978. > int pem_check_suffix(const char *pem_str, const char *suffix)
  979.   {
  980.       int pem_len = strlen(pem_str);

crypto/pem/pem_lib.c:985:5: Assignment
  983.       if (suffix_len + 1 >= pem_len)
  984.           return 0;
  985.       p = pem_str + pem_len - suffix_len;
             ^
  986.       if (strcmp(p, suffix))
  987.           return 0;

crypto/pem/pem_lib.c:988:5: Assignment
  986.       if (strcmp(p, suffix))
  987.           return 0;
  988.       p--;
             ^
  989.       if (*p != ' ')
  990.           return 0;

crypto/pem/pem_lib.c:989:9: Array access: Offset: [-12, +oo] Size: [1, 241] by call to `pem_check_suffix` 
  987.           return 0;
  988.       p--;
  989.       if (*p != ' ')
                 ^
  990.           return 0;
  991.       return p - pem_str;
