)]}'
{
  "commit": "6175ad51ce732e7d0d9b98342d42343322c6840f",
  "tree": "08308634dfccaa797a50347f0e7e963731c380d5",
  "parents": [
    "f143cf2f5c058666c7c697a3c3f7e7a64294baf6"
  ],
  "author": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Tue Dec 03 03:39:59 2024 +0000"
  },
  "committer": {
    "name": "Pdfium LUCI CQ",
    "email": "pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Tue Dec 03 03:39:59 2024 +0000"
  },
  "message": "Let CPDF_Font::GetFontWeight() callers handle integer overflow\n\nIn GetFontWeight(), the font weight is inferred from the /StemV value.\nIf the value is outside the normal range, the existing code checks for\ninteger overflows and falls back to the normal weight in that case.\nChange GetFontWeight() to return an optional\u003cint\u003e, so the callers can\ndetect the overflow and handle it appropriately.\n\nFor FPDFFont_GetWeight() and FPDFText_GetFontWeight(), return -1 to\nnotify the PDFium embedder about the error.\n\nFor CPDF_SimpleFont::LoadSubstFont(), fall back to the normal weight as\nbefore.\n\nChange-Id: Ia982f99ffdc60678c3b185fbe1a0d1024f0af243\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/126750\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\nReviewed-by: Thomas Sepez \u003ctsepez@google.com\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fde88bb18329786463798dc0ffc747738c75d31e",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/font/cpdf_font.cpp",
      "new_id": "0ceefeb0e35e805b13042ba8b631749b4dddf54c",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/font/cpdf_font.cpp"
    },
    {
      "type": "modify",
      "old_id": "110fe167093ab45d615662acc491a4c5e1a77b30",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/font/cpdf_font.h",
      "new_id": "d940a0660b146142c73c9875234a18f49f5268fb",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/font/cpdf_font.h"
    },
    {
      "type": "modify",
      "old_id": "4572eff52217ccbe155044a8dccd761d119bda1e",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/font/cpdf_simplefont.cpp",
      "new_id": "f7300ded87bca7059f493451905a3beb5c1268d0",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/font/cpdf_simplefont.cpp"
    },
    {
      "type": "modify",
      "old_id": "e8ae5f9a85e3f10ed08d84763db17941190ee698",
      "old_mode": 33188,
      "old_path": "fpdfsdk/fpdf_edittext.cpp",
      "new_id": "ed0d4a6a756292b1ef66ca51edd287c0485074a9",
      "new_mode": 33188,
      "new_path": "fpdfsdk/fpdf_edittext.cpp"
    },
    {
      "type": "modify",
      "old_id": "cdf0369d43a293d9074e5e2d90ed8fac9677147d",
      "old_mode": 33188,
      "old_path": "fpdfsdk/fpdf_text.cpp",
      "new_id": "9148cb2d14f80f7d56595018a48142b372ec3d3f",
      "new_mode": 33188,
      "new_path": "fpdfsdk/fpdf_text.cpp"
    }
  ]
}
