crypto/pem/pem_pkey.c:78: 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:298:12: Call
  296.                                 const char *name, BIO *bp, pem_password_cb *cb,
  297.                                 void *u) {
  298.       return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u,
                    ^
  299.                                       PEM_FLAG_SECURE | PEM_FLAG_EAY_COMPATIBLE);
  300.   }

crypto/pem/pem_lib.c:260:14: Call
    258.           pem_free(header, flags);
    259.           pem_free(data, flags);
    260.           if (!PEM_read_bio_ex(bp, &nm, &header, &data, &len, flags)) {
                        ^
    261.               if (ERR_GET_REASON(ERR_peek_error()) == PEM_R_NO_START_LINE)
    262.                   ERR_add_error_data(2, "Expecting: ", name);

crypto/pem/pem_lib.c:958:5: Assignment
      956.       }
      957.       BIO_read(headerB, *header, headerlen);
      958.       (*header)[headerlen] = '\0';
                 ^
      959.       BIO_read(dataB, *data, len);
      960.       *len_out = len;

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

crypto/pem/pem_lib.c:985:1: <Length trace>
983.    */
984.   
985. > int pem_check_suffix(const char *pem_str, const char *suffix)
986.   {
987.       int pem_len = strlen(pem_str);

crypto/pem/pem_lib.c:985:1: Parameter `*pem_str`
  983.    */
  984.   
  985. > int pem_check_suffix(const char *pem_str, const char *suffix)
  986.   {
  987.       int pem_len = strlen(pem_str);

crypto/pem/pem_lib.c:992:5: Assignment
  990.       if (suffix_len + 1 >= pem_len)
  991.           return 0;
  992.       p = pem_str + pem_len - suffix_len;
             ^
  993.       if (strcmp(p, suffix))
  994.           return 0;

crypto/pem/pem_lib.c:995:5: Assignment
  993.       if (strcmp(p, suffix))
  994.           return 0;
  995.       p--;
             ^
  996.       if (*p != ' ')
  997.           return 0;

crypto/pem/pem_lib.c:996:9: Array access: Offset: [-12, +oo] Size: [1, 241] by call to `pem_check_suffix` 
  994.           return 0;
  995.       p--;
  996.       if (*p != ' ')
                 ^
  997.           return 0;
  998.       return p - pem_str;
