)]}'
{
  "commit": "856fd0a23ed83549af63ebf7ee3d379bdbc4e220",
  "tree": "99fc0e38f1d240cc07fc7b8b0cf353226033524a",
  "parents": [
    "5b2c88a1e5c6a27a946fa048378fe63996701b85"
  ],
  "author": {
    "name": "Tom Sepez",
    "email": "tsepez@chromium.org",
    "time": "Fri Oct 15 23:30:45 2021 +0000"
  },
  "committer": {
    "name": "Pdfium LUCI CQ",
    "email": "pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Fri Oct 15 23:30:45 2021 +0000"
  },
  "message": "Fix span calculation in CPDF_DIB::GetScanline()\n\nIdeally, the span size would match the calculated src_pitch_value, but\nsome spans are actually larger than we think. In cases when there is a\ndecoder or a cached bitmap, rely on the bounds being correctly set from\nthose spans, rather than recalculating them based on the current notion\nof pitch.\n\nTry to return spans representing only the initialized portion of a\nbuffer when we copy into one.\n\nHaving landed this CL, we should be able to re-enable the spancpy()\nin CFX_DIBBase::Clone() that was reverted in a prior CL.\n\n-- take a branch out of a for-loop while at it since I was confused\n   for a moment if both halves advanced the same amount.\n\nChange-Id: I557880b610af75f8bc68592d462b05cd8be964f2\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/85851\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Tom Sepez \u003ctsepez@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "586c8af1a58733dac046a2b94e5d599fb69b52e7",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/page/cpdf_dib.cpp",
      "new_id": "27be60aad832251b44375f4e6459b6cd3414f22f",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/page/cpdf_dib.cpp"
    }
  ]
}
