)]}'
{
  "commit": "4414ee21a06e28144ea49dfd46f854a83aa81f44",
  "tree": "f64d7039e2e48bb2b1144328f827cd0433403eb9",
  "parents": [
    "cff6cfc61523389959346693a0d3d46b05c7b8ed"
  ],
  "author": {
    "name": "Hui Yingst",
    "email": "nigi@chromium.org",
    "time": "Wed Jun 10 20:58:19 2020 +0000"
  },
  "committer": {
    "name": "Chromium commit bot",
    "email": "commit-bot@chromium.org",
    "time": "Wed Jun 10 20:58:19 2020 +0000"
  },
  "message": "Change experimental API FPDFAttachment_GetFile().\n\nFPDFAttachment_GetFile() returns 0 when retrieving attachment data\nfails or when the attachment size is 0-byte. Since PDF documents could\nhave 0-byte attachments embedded, we need this API to distinguish the\ntwo situations.\n\nThis CL changes the return value for FPDFAttachment_GetFile() to\nFPDF_BOOL type to indicate success/failure on retrieving attachment\nfile data, and adds an output parameter |out_buflen| to return the\nattachment\u0027s size in bytes.\n\nBug: pdfium:1537\nChange-Id: I390b33c9bc9a5ee223db9e101f2817b468b1b040\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/70474\nCommit-Queue: Hui Yingst \u003cnigi@chromium.org\u003e\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "da5e6e3cb8a41d7389580c8feaf77b2dca2b2445",
      "old_mode": 33188,
      "old_path": "fpdfsdk/fpdf_attachment.cpp",
      "new_id": "f4e296333f5c04c4b56d5e7c33c49f3a29bf237e",
      "new_mode": 33188,
      "new_path": "fpdfsdk/fpdf_attachment.cpp"
    },
    {
      "type": "modify",
      "old_id": "08f00dc178f213505537e98d3ba492d8c62ee873",
      "old_mode": 33188,
      "old_path": "fpdfsdk/fpdf_attachment_embeddertest.cpp",
      "new_id": "2f79ae580d2f97bd084790396c9a818dff4e5dd1",
      "new_mode": 33188,
      "new_path": "fpdfsdk/fpdf_attachment_embeddertest.cpp"
    },
    {
      "type": "modify",
      "old_id": "afd4eb002159df5c8b1a13b1583ff389aad10696",
      "old_mode": 33188,
      "old_path": "public/fpdf_attachment.h",
      "new_id": "a097db195a99c3538baa9f4f06dd375c43a8211a",
      "new_mode": 33188,
      "new_path": "public/fpdf_attachment.h"
    },
    {
      "type": "modify",
      "old_id": "122d783b39902dda7260c085dd1b2a84a5f4ca2e",
      "old_mode": 33188,
      "old_path": "samples/pdfium_test_write_helper.cc",
      "new_id": "d44a298f6f5cab0fe305ca292518f3c41c01208a",
      "new_mode": 33188,
      "new_path": "samples/pdfium_test_write_helper.cc"
    }
  ]
}
