)]}'
{
  "commit": "8b91627a75266376e3ca7f8b0d6576fc486242a4",
  "tree": "ac1547264fefb28f945d56a774ec84e9969cd6c5",
  "parents": [
    "df97b13e53d1b96151fa119e3e94db19f5df097b"
  ],
  "author": {
    "name": "Tom Sepez",
    "email": "tsepez@chromium.org",
    "time": "Thu Oct 28 23:36:12 2021 +0000"
  },
  "committer": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Thu Oct 28 23:36:12 2021 +0000"
  },
  "message": "[M90-LTS] Use more safe arithmetic in CFX_DIBBase\n\nMost of the calculations are \"safe\" because we know that the DIB\nhas validated sizes before allocating a buffer, and that calculations\nin terms of bytes won\u0027t overflow and will be within the buffer. But\ncalculations in terms of bits might create overflow in temporaries,\nso use safe arithmetic there instead.\n\nRe-arranging the order of operations thus converting to bytes first\nmight be one option, but we want to handle the 1 bpp case.\n\nTest would require large images that might not be possible on\nall platforms.\n\nM90 merge issues:\n  cfx_bitmapcomposer.cpp: conflicting includes, and conflicting\n  declaration of dest_scan\n\nBug: chromium:1253399\nChange-Id: I3c6c5b8b1f1bf3f429c7d377a8a84c5ab53cafd9\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/85510\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Tom Sepez \u003ctsepez@chromium.org\u003e\n(cherry picked from commit a8b293732a0160d1bc1d5b0ad5744922f0f820d5)\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/86230\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "86066ba72dccc78d65dbaaba76ee4d47d18080a2",
      "old_mode": 33188,
      "old_path": "core/fxge/dib/cfx_bitmapcomposer.cpp",
      "new_id": "af7a2480989668d0108b91fe4e60f2d6a12d31dd",
      "new_mode": 33188,
      "new_path": "core/fxge/dib/cfx_bitmapcomposer.cpp"
    },
    {
      "type": "modify",
      "old_id": "137556e4fd3de77521ae50c3f2f00d6e43651149",
      "old_mode": 33188,
      "old_path": "core/fxge/dib/cfx_dibbase.cpp",
      "new_id": "e0186e5c58aa09f24b263783a700cf627bd727ec",
      "new_mode": 33188,
      "new_path": "core/fxge/dib/cfx_dibbase.cpp"
    },
    {
      "type": "modify",
      "old_id": "5012d4400be224189fa175fc4a6603ff88069835",
      "old_mode": 33188,
      "old_path": "core/fxge/dib/cfx_dibitmap.cpp",
      "new_id": "ad23d4bb6bb82767bf2e27f3f4538e3f2f29c481",
      "new_mode": 33188,
      "new_path": "core/fxge/dib/cfx_dibitmap.cpp"
    }
  ]
}
