)]}'
{
  "commit": "803ca8189bcac9f68b4e3992db60a11c34618f10",
  "tree": "85323a53d756e28ceb3ed65a71636d6429ac3905",
  "parents": [
    "6d323ac87167fe73f5adca0c16eaf83b6eaba934"
  ],
  "author": {
    "name": "Matyas Trosztel",
    "email": "matyas.trosztel.jc@gmail.com",
    "time": "Thu Nov 12 15:17:31 2026 +0100"
  },
  "committer": {
    "name": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Thu Nov 12 09:12:28 2026 -0800"
  },
  "message": "Check for allocation failure in x509_name_get_cache\n\nx509_name_get_cache did not check the result of MakeUnique\u003cX509NameCache\u003e().\nWhen that allocation failed, it wrote the name\u0027s DER encoding through a null\npointer (CBBFinishArray(cbb.get(), \u0026new_cache-\u003eder)) and crashed.\n\nParsing, encoding, copying, comparing and hashing an X509_NAME all build this\ncache (x509_parse_name, x509_marshal_name, x509_name_copy, X509_NAME_cmp,\nX509_NAME_hash), so one failed allocation while parsing a certificate\n(d2i_X509), in X509_set_issuer_name or in i2d_X509_NAME crashed the process\ninstead of returning an error. Return nullptr, as the function\u0027s other\nfailure paths do; every caller already handles that.\n\nReproduced with MALLOC_FAILURE_TESTING: a program that sets a one-entry name\nas the issuer and subject of an X509 and encodes the name crashes at three of\nits 38 allocations (11, 22 and 33) and handles every failed allocation with\nthis change.\n\nChange-Id: Ie58d460c422540a9b04ddcaad23811884437a0c6\nReviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/105668\nReviewed-by: Adam Langley \u003cagl@google.com\u003e\nReviewed-by: David Benjamin \u003cdavidben@google.com\u003e\nCommit-Queue: David Benjamin \u003cdavidben@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4cdae37c09ab75a03a3679b7de844bc27455ebaa",
      "old_mode": 33188,
      "old_path": "crypto/x509/x_name.cc",
      "new_id": "753d6531b0786857efc1ce69200460b7a9bc8f64",
      "new_mode": 33188,
      "new_path": "crypto/x509/x_name.cc"
    }
  ]
}
