commit | 6f2c0646bdf33df0aef32360f18b1923f696779b | [log] [tgz] |
---|---|---|
author | Lei Zhang <thestig@chromium.org> | Tue Sep 08 19:40:56 2020 +0000 |
committer | Chromium commit bot <commit-bot@chromium.org> | Tue Sep 08 19:40:56 2020 +0000 |
tree | ab0600d2e4c4d0d932a77fd50a5adf590461a5e0 | |
parent | 1e7df19a137f290064bc098e9ccbf82232197285 [diff] |
Add another embedder test for password handling. A higher level regression test for passwords not working correctly. The instructions to generate the test PDF are on the bug. Bug: chromium:1124998 Change-Id: Ic4fd799b549679eb868febe823e1db2bfc08a5d3 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/73350 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp b/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp index 75ae126..7bd4881 100644 --- a/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp +++ b/core/fpdfapi/parser/cpdf_security_handler_embeddertest.cpp
@@ -665,3 +665,7 @@ VerifySavedModifiedHelloWorldDocumentWithPassword(kHotelLatin1); VerifySavedModifiedHelloWorldDocumentWithPassword(kHotelUTF8); } + +TEST_F(CPDFSecurityHandlerEmbedderTest, BUG_1124998) { + OpenAndVerifyHelloWorldDocumentWithPassword("bug_1124998.pdf", "test"); +}
diff --git a/testing/resources/bug_1124998.pdf b/testing/resources/bug_1124998.pdf new file mode 100644 index 0000000..4368222 --- /dev/null +++ b/testing/resources/bug_1124998.pdf Binary files differ