)]}'
{
  "commit": "0c17bdac6ce07754402385720d3a0e70ce179949",
  "tree": "8aec5757fe6e3cf750e8a05abb12fd017f88d539",
  "parents": [
    "4d46901fe4ef3491bdb4375519b488de0142398e"
  ],
  "author": {
    "name": "Dan Sinclair",
    "email": "dsinclair@chromium.org",
    "time": "Wed Jun 14 13:50:05 2017 -0400"
  },
  "committer": {
    "name": "dsinclair",
    "email": "dsinclair@chromium.org",
    "time": "Wed Jun 14 19:27:06 2017 +0000"
  },
  "message": "[Merge M59] 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(cherry picked from commit 957480c17682008ae2a14723868fcdcab89b6577)\nReviewed-on: https://pdfium-review.googlesource.com/6556\nReviewed-by: Nicolás Peña \u003cnpm@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f643d3f24e3324d568d126beedb380e285807e58",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/edit/fpdf_edit_create.cpp",
      "new_id": "4bdb63cb3cdb3fd9c9784e77f6e48150d8135cd0",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/edit/fpdf_edit_create.cpp"
    },
    {
      "type": "modify",
      "old_id": "ecf2cf6e5b403272a3031a2d9e0a53d61f488ade",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_syntax_parser.cpp",
      "new_id": "7b7495dfc64095a0cd33606ce25e036a5d9ade7b",
      "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": "79074153fbb36ad1792e9800d6afe787af908d4d",
      "old_mode": 33188,
      "old_path": "testing/embedder_test.cpp",
      "new_id": "f2a27009e177958c91ebdb3e0228e81b62ed0092",
      "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"
    }
  ]
}
