You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/09/04 20:05:56 UTC
svn commit: r1840060 -
/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
Author: tilman
Date: Tue Sep 4 20:05:56 2018
New Revision: 1840060
URL: http://svn.apache.org/viewvc?rev=1840060&view=rev
Log:
PDFBOX-4308: improve comment that describes the file and what happened
Modified:
pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java?rev=1840060&r1=1840059&r2=1840060&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java Tue Sep 4 20:05:56 2018
@@ -212,11 +212,12 @@ public class TestSymmetricKeyEncryption
/**
* PDFBOX-4308: test that index colorspace table string doesn't get
- * corrupted when encrypting. This happened because the table was used by
- * two dictionaries, and when saving one string ended up as a direct object
- * and the other (but same java object) ended up as an indirect object.
- * Encryption used the wrong object number and/or the object was encrypted
- * twice.
+ * corrupted when encrypting. This happened because the colorspace was
+ * referenced twice, once in the resources dictionary and once in an image
+ * in the resources dictionary, and when saving the PDF the string was saved
+ * twice, once as a direct object and once as an indirect object (both from
+ * the same java object). Encryption used the wrong object number and/or the
+ * object was encrypted twice.
*
* @throws IOException
*/