)]}'
{
  "commit": "728d97050d0cdadb34cffea720257387b042cc76",
  "tree": "05bbc89f9ce76aede3736bb1eeb4560af20fa3ea",
  "parents": [
    "094c22f840f4392012b60c17cf63863b33a0b448"
  ],
  "author": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Tue Dec 01 01:19:50 2026 -0800"
  },
  "committer": {
    "name": "pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Tue Dec 01 01:19:50 2026 -0800"
  },
  "message": "Check font type before writing operators in ProcessText()\n\nCPDF_PageContentGenerator::ProcessText() currently calls\nProcessGraphics() and writes \"BT\" / \"Tm\" operators before checking\nwhether the font type is supported. When encountering an unsupported\nfont (such as a Type 3 font), the early return leaves unclosed \"q\" and\n\"BT\" operators in the stream and can leave behind an unused ExtGState\nresource.\n\nMove the font lookup and font-type check ahead of ProcessGraphics() so\nreturning early writes nothing to the buffer and creates no resources.\nUpdate CPDFPageContentGeneratorTest.ProcessTextWithUnsupportedType3Font\nexpectations accordingly.\n\nThis CL is AI generated.\n\nChange-Id: If251620e85c90cfdcbefcda6a32c37cfc38b9de5\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/164971\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\nReviewed-by: Andy Phan \u003candyphan@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "207468f9b4fefec07218fdd86486977740d4b5c0",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp",
      "new_id": "fb97506b4eede386ffed198182674cc9937b8c5e",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp"
    },
    {
      "type": "modify",
      "old_id": "722d662c16ae801e5b7ecfd8e5cb1ac7bfdd412f",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp",
      "new_id": "3f7a7300dbf52f85fe9d8a233873ca30da5c5b46",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/edit/cpdf_pagecontentgenerator_unittest.cpp"
    }
  ]
}
