)]}'
{
  "commit": "11d89e6d25af02147c19ebaccefcdde691ee292d",
  "tree": "27d58638ca2c6398ff399bc5b330be201b593549",
  "parents": [
    "dccc0f9e175e6089638abc623bd3ad177e0260ef"
  ],
  "author": {
    "name": "Lei Zhang",
    "email": "thestig@chromium.org",
    "time": "Sat Dec 14 03:16:13 2019 +0000"
  },
  "committer": {
    "name": "Chromium commit bot",
    "email": "commit-bot@chromium.org",
    "time": "Sat Dec 14 03:16:13 2019 +0000"
  },
  "message": "Fix password encoding when generating PDFs.\n\nPer https://crbug.com/pdfium/1194, PDFium accepts passwords in either\nLatin1 or UTF8 encoding, and will re-encode, if necessary, to correctly\ndecrypt PDFs. When the encrypted PDFs are copied and saved, the copy\nneeds to be encrypted with the password with the proper encoding.\n\nDo so by remembering the re-encode status in CPDF_SecurityHandler. Then\nuse that knowledge in GetEncodedPassword() to encode passwords properly.\nRe-enable CPDFSecurityHandlerEmbedderTest code that was disabled due to\nthis issue, and add new TODOs for test cases that still do not work due\nto other issues.\n\nBug: pdfium:1440,pdfium:1441\nChange-Id: I4fe27403db06a1a5dcb90d307fe00af181a1ad22\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/63831\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "71ef3792503ac4daddc1e2b6ea721fe90379feb5",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/edit/cpdf_creator.cpp",
      "new_id": "6c99ff44425726c0d03d5f878cb71425d8c7fc1a",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/edit/cpdf_creator.cpp"
    },
    {
      "type": "modify",
      "old_id": "8cfb6fc01bfb30870c30287193577edb7ce8a7a0",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_parser.cpp",
      "new_id": "3e2819bbb80d1e84e5d53dbc7a0a3fc735de992f",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/cpdf_parser.cpp"
    },
    {
      "type": "modify",
      "old_id": "8259f0841ce1d654c3059035878178cdff871e9a",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_parser.h",
      "new_id": "d44244a17d92c7d82b59b09085b9d59edc14b1b7",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/cpdf_parser.h"
    },
    {
      "type": "modify",
      "old_id": "7553864754fc7425994c69f5635e6274969aed14",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_security_handler.cpp",
      "new_id": "d00fd60382733470e8a6ab2d82f353efd8c5f046",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/cpdf_security_handler.cpp"
    },
    {
      "type": "modify",
      "old_id": "0690e6ff431f22481f7bc13ffe199cc4595d9921",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_security_handler.h",
      "new_id": "ee6928330e5a91566e60e934189e00c14dd95a4f",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/cpdf_security_handler.h"
    },
    {
      "type": "modify",
      "old_id": "a3cf04b914d126572963a0e10f981a1e4bbf9601",
      "old_mode": 33188,
      "old_path": "core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp",
      "new_id": "7e74f8f8fb9e2eece41b5b745be10207e78501d9",
      "new_mode": 33188,
      "new_path": "core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp"
    }
  ]
}
