)]}'
{
  "commit": "fabd13dc93f6cd9345f20f10456eb5a5ac8863e6",
  "tree": "3fd1eb0aad3060c299dfb9dc1700daa35c0e070b",
  "parents": [
    "f6bd7c6fd4df030be28c84b755d85eed0fe33fa7"
  ],
  "author": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Tue Mar 26 23:16:09 2019 +0000"
  },
  "committer": {
    "name": "Chromium commit bot",
    "email": "commit-bot@chromium.org",
    "time": "Tue Mar 26 23:16:09 2019 +0000"
  },
  "message": "Avoid 0 byte reads in ParseAndAppendCrossRefSubsectionData().\n\nThe existing CPDF_Parser::ParseAndAppendCrossRefSubsectionData() code\ndoes not handle reads properly when the read count is a multiple of the\nblock size. e.g. For a count of 2048 and a block size of 1024, it tries\nto read 1024, 1024, and 0 bytes.\n\nCommit cef91f11 added a check that causes 0 byte reads to fail, so the\nexisting behavior causes ParseAndAppendCrossRefSubsectionData() to fail\naltogether. Fix how ParseAndAppendCrossRefSubsectionData() loops to\navoid the 0 byte read.\n\nBUG\u003dchromium:945624\n\nChange-Id: Ie309dd6c3e139720f19962ec2a094512282aa8ed\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/52410\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dc3d3987909ad4e9593289475a111c3347408903",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_parser.cpp",
      "new_id": "02cb08ee69602723381e049abb1d1c78a3d608b6",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/cpdf_parser.cpp"
    }
  ]
}
