)]}'
{
  "commit": "957480c17682008ae2a14723868fcdcab89b6577",
  "tree": "cf5f1cb09c4385b7a107d8c8efcc99ea046849f8",
  "parents": [
    "6500c6faf82f636d55c9ca5682711022890bef1d"
  ],
  "author": {
    "name": "Dan Sinclair",
    "email": "dsinclair@chromium.org",
    "time": "Tue Jun 13 15:21:14 2017 -0400"
  },
  "committer": {
    "name": "Chromium commit bot",
    "email": "commit-bot@chromium.org",
    "time": "Tue Jun 13 19:33:05 2017 +0000"
  },
  "message": "Allow zero length streams when parsing.\n\nIt\u0027s possible to create a stream of length 0 in a PDF document.\nCurrently the code will early exit and return a nullptr. This causes\nissues when you want to print the given PDF as the FPDF_ImportPages code\nends up only generating up to the zero length object.\n\nThis CL allows creating streams with length 0 and updates the PDF saving\ncode to output a blank stream.\n\nBug: chromium:732380\nChange-Id: I44182ba4aaac7c51284b002ba01bbc34b6bcf9e0\nReviewed-on: https://pdfium-review.googlesource.com/6490\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: dsinclair \u003cdsinclair@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1c0cd69a4ba81423acf6ed3e979d316804be145a",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/edit/cpdf_creator.cpp",
      "new_id": "858d56cbaf470216c0941618196b64b2a9130b0d",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/edit/cpdf_creator.cpp"
    },
    {
      "type": "modify",
      "old_id": "fe1a197028ace5d1de11f1ffb5d2a703e56020c1",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_syntax_parser.cpp",
      "new_id": "9dccbd936ecb66fa4e7d94154ba7bba50a1bfb4f",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/cpdf_syntax_parser.cpp"
    },
    {
      "type": "modify",
      "old_id": "db39700ca1d6bc4d7f25ac9b979c9f520b4d3663",
      "old_mode": 33188,
      "old_path": "fpdfsdk/fpdfppo_embeddertest.cpp",
      "new_id": "7e6ff33fc3cc8bc8b199ebfafb994ef59851e105",
      "new_mode": 33188,
      "new_path": "fpdfsdk/fpdfppo_embeddertest.cpp"
    },
    {
      "type": "modify",
      "old_id": "bf00c1160799fa32b203cb7919cad2510c544651",
      "old_mode": 33188,
      "old_path": "testing/embedder_test.cpp",
      "new_id": "6cea598400af091d1353239c779cfc12698f5792",
      "new_mode": 33188,
      "new_path": "testing/embedder_test.cpp"
    },
    {
      "type": "modify",
      "old_id": "619fc5d6992eeadb0e93c031882db2e1e701988d",
      "old_mode": 33188,
      "old_path": "testing/embedder_test.h",
      "new_id": "2bb796d905ad4ac43e19b0cf607d7f4d1a25f064",
      "new_mode": 33188,
      "new_path": "testing/embedder_test.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5b258d4d7462b42a2f19820a40b87f1c738450d1",
      "new_mode": 33188,
      "new_path": "testing/resources/zero_length_stream.in"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "90fae5be7f4df849916887cc2d725c21fd94872c",
      "new_mode": 33188,
      "new_path": "testing/resources/zero_length_stream.pdf"
    }
  ]
}
