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