apache-pdfbox/pdfbox-1.8.12-bouncycastle.patch

51 lines
2.5 KiB
Diff
Raw Normal View History

Accepting request 620188 from home:favogt:branches:Java:packages - Update to 1.8.15: * [PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects (CVE-2018-8036,bsc#1099721) - Update to 1.8.14: * [PDFBOX-3625] - Use correct file encoding when saving fdf data * [PDFBOX-3724] - Wrong size in rendering of some artifacts * [PDFBOX-3733] - image added to pdf by tool AddImageToPDF is turn-overed * [PDFBOX-3739] - ImageWriterIterator.next() and ImageReaderIterator.next() can return null * [PDFBOX-3742] - Unknown dir object c='>' cInt=62 peek='>' peekInt=62 * [PDFBOX-3813] - PDF Box crash when using PDFToImage or PDFDebug * [PDFBOX-3843] - Rect of Annotation contains indirect elements + Patch * [PDFBOX-3889] - javax.crypto.BadPaddingException: Given final block not properly padded * [PDFBOX-3909] - End of inline image not detected * [PDFBOX-3919] - Infinite loop while parsing (2) * [PDFBOX-3933] - PDFParser swallows a CR at the end of a stream * [PDFBOX-3942] - ClassCastException in getOptionalContentGroups * [PDFBOX-4005] - Incorrect use of PDNumberTreeNode in PDPageLabels * [PDFBOX-4011] - BBox in signature forms has wrong order * [PDFBOX-4027] - IndexOutOfBoundsException when XObject form matrix has only 5 elements * [PDFBOX-4030] - ClassCastException when matrix array has indirect objects * [PDFBOX-4064] - cm operator has 7 numbers * [PDFBOX-4083] - Line annotation /LL, /LLE and /LLO have wrong default values * [PDFBOX-4088] - Root/StructTreeRoot/K/S must be name, not string (merge) * [PDFBOX-3635] - Remove workaround to avoid SSLHandshakeException * [PDFBOX-4142] - Don't use md5 checksum due to changes to the release distribuition policy - Update to 1.8.13: * [PDFBOX-2420] - DateConverter doesn't handle time zones outside -12 to +12 range properly * [PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException * [PDFBOX-3315] - Dates falsely detected as different by preflight * [PDFBOX-3335] - Issue while Merging PDF with Hidden Layers * [PDFBOX-3341] - currentAccessPermission.setReadOnly() not set in StandardSecurityHandler * [PDFBOX-3355] - PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a * [PDFBOX-3368] - ContainsKey don't work for the Map<String, Object> returned by PDStructureTreeRoot.getRoleMap * [PDFBOX-3369] - Error expected floating point number actual='0.00-35095424' * [PDFBOX-3409] - TextToPDF drops leading spaces * [PDFBOX-3420] - Can't sign pdf with a particular attachment * [PDFBOX-3446] - Infinite loop while parsing * [PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList * [PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment * [PDFBOX-3463] - XMPSchemaBasic.getLabel() always returns null * [PDFBOX-3466] - Java 9 warnings * [PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID * [PDFBOX-3477] - CA and ca values should be clipped * [PDFBOX-3481] - Localization in XRef generation results in unusable PDFs * [PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF * [PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber * [PDFBOX-3500] - Error expected floating point number actual='0.-262' * [PDFBOX-3532] - Java 6 errors * [PDFBOX-3546] - IOException over DataFormatException, "invalid stored block lengths" on a valid PDF * [PDFBOX-3551] - CLI Decrypt broken, only allows 1 argument * [PDFBOX-3555] - FlateFilter.decode cause native memory leaks * [PDFBOX-3558] - NPE in JBig2Filter if BitsPerComponent is missing * [PDFBOX-3570] - JDK-8054565 Java 8 close contract issue * [PDFBOX-3571] - sRGB Color Space Profile is subject to 3rd party copyright * [PDFBOX-3578] - java.lang.IllegalArgumentException: dash lengths all zero * [PDFBOX-3590] - AccessPermission not applied * [PDFBOX-3594] - Use PDOutlineItem#findDestinationPage() cannot get PDPage, return was null * [PDFBOX-3609] - ClassCastException in PDCIDFont.readWidths() * [PDFBOX-3410] - TextToPDF needs orientation control * [PDFBOX-3352] - Calendar values are parsed with unknown timezones - Refresh pdfbox-1.8.12-bouncycastle.patch - Add patch to fix the version number: * fix-version.patch - Use %license OBS-URL: https://build.opensuse.org/request/show/620188 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-pdfbox?expand=0&rev=17
2018-07-02 11:32:27 +02:00
Index: pdfbox-1.8.15/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
===================================================================
--- pdfbox-1.8.15.orig/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
+++ pdfbox-1.8.15/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
@@ -38,7 +38,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.bouncycastle.asn1.ASN1InputStream;
-import org.bouncycastle.asn1.DERObject;
+import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.DERObjectIdentifier;
import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.DEROutputStream;
Accepting request 620188 from home:favogt:branches:Java:packages - Update to 1.8.15: * [PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects (CVE-2018-8036,bsc#1099721) - Update to 1.8.14: * [PDFBOX-3625] - Use correct file encoding when saving fdf data * [PDFBOX-3724] - Wrong size in rendering of some artifacts * [PDFBOX-3733] - image added to pdf by tool AddImageToPDF is turn-overed * [PDFBOX-3739] - ImageWriterIterator.next() and ImageReaderIterator.next() can return null * [PDFBOX-3742] - Unknown dir object c='>' cInt=62 peek='>' peekInt=62 * [PDFBOX-3813] - PDF Box crash when using PDFToImage or PDFDebug * [PDFBOX-3843] - Rect of Annotation contains indirect elements + Patch * [PDFBOX-3889] - javax.crypto.BadPaddingException: Given final block not properly padded * [PDFBOX-3909] - End of inline image not detected * [PDFBOX-3919] - Infinite loop while parsing (2) * [PDFBOX-3933] - PDFParser swallows a CR at the end of a stream * [PDFBOX-3942] - ClassCastException in getOptionalContentGroups * [PDFBOX-4005] - Incorrect use of PDNumberTreeNode in PDPageLabels * [PDFBOX-4011] - BBox in signature forms has wrong order * [PDFBOX-4027] - IndexOutOfBoundsException when XObject form matrix has only 5 elements * [PDFBOX-4030] - ClassCastException when matrix array has indirect objects * [PDFBOX-4064] - cm operator has 7 numbers * [PDFBOX-4083] - Line annotation /LL, /LLE and /LLO have wrong default values * [PDFBOX-4088] - Root/StructTreeRoot/K/S must be name, not string (merge) * [PDFBOX-3635] - Remove workaround to avoid SSLHandshakeException * [PDFBOX-4142] - Don't use md5 checksum due to changes to the release distribuition policy - Update to 1.8.13: * [PDFBOX-2420] - DateConverter doesn't handle time zones outside -12 to +12 range properly * [PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException * [PDFBOX-3315] - Dates falsely detected as different by preflight * [PDFBOX-3335] - Issue while Merging PDF with Hidden Layers * [PDFBOX-3341] - currentAccessPermission.setReadOnly() not set in StandardSecurityHandler * [PDFBOX-3355] - PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a * [PDFBOX-3368] - ContainsKey don't work for the Map<String, Object> returned by PDStructureTreeRoot.getRoleMap * [PDFBOX-3369] - Error expected floating point number actual='0.00-35095424' * [PDFBOX-3409] - TextToPDF drops leading spaces * [PDFBOX-3420] - Can't sign pdf with a particular attachment * [PDFBOX-3446] - Infinite loop while parsing * [PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList * [PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment * [PDFBOX-3463] - XMPSchemaBasic.getLabel() always returns null * [PDFBOX-3466] - Java 9 warnings * [PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID * [PDFBOX-3477] - CA and ca values should be clipped * [PDFBOX-3481] - Localization in XRef generation results in unusable PDFs * [PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF * [PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber * [PDFBOX-3500] - Error expected floating point number actual='0.-262' * [PDFBOX-3532] - Java 6 errors * [PDFBOX-3546] - IOException over DataFormatException, "invalid stored block lengths" on a valid PDF * [PDFBOX-3551] - CLI Decrypt broken, only allows 1 argument * [PDFBOX-3555] - FlateFilter.decode cause native memory leaks * [PDFBOX-3558] - NPE in JBig2Filter if BitsPerComponent is missing * [PDFBOX-3570] - JDK-8054565 Java 8 close contract issue * [PDFBOX-3571] - sRGB Color Space Profile is subject to 3rd party copyright * [PDFBOX-3578] - java.lang.IllegalArgumentException: dash lengths all zero * [PDFBOX-3590] - AccessPermission not applied * [PDFBOX-3594] - Use PDOutlineItem#findDestinationPage() cannot get PDPage, return was null * [PDFBOX-3609] - ClassCastException in PDCIDFont.readWidths() * [PDFBOX-3410] - TextToPDF needs orientation control * [PDFBOX-3352] - Calendar values are parsed with unknown timezones - Refresh pdfbox-1.8.12-bouncycastle.patch - Add patch to fix the version number: * fix-version.patch - Use %license OBS-URL: https://build.opensuse.org/request/show/620188 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-pdfbox?expand=0&rev=17
2018-07-02 11:32:27 +02:00
@@ -53,9 +53,6 @@ import org.bouncycastle.asn1.cms.Recipie
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
import org.bouncycastle.asn1.x509.TBSCertificateStructure;
-import org.bouncycastle.cms.CMSEnvelopedData;
-import org.bouncycastle.cms.CMSException;
-import org.bouncycastle.cms.RecipientInformation;
import org.apache.pdfbox.cos.COSArray;
import org.apache.pdfbox.cos.COSString;
import org.apache.pdfbox.exceptions.CryptographyException;
Accepting request 620188 from home:favogt:branches:Java:packages - Update to 1.8.15: * [PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects (CVE-2018-8036,bsc#1099721) - Update to 1.8.14: * [PDFBOX-3625] - Use correct file encoding when saving fdf data * [PDFBOX-3724] - Wrong size in rendering of some artifacts * [PDFBOX-3733] - image added to pdf by tool AddImageToPDF is turn-overed * [PDFBOX-3739] - ImageWriterIterator.next() and ImageReaderIterator.next() can return null * [PDFBOX-3742] - Unknown dir object c='>' cInt=62 peek='>' peekInt=62 * [PDFBOX-3813] - PDF Box crash when using PDFToImage or PDFDebug * [PDFBOX-3843] - Rect of Annotation contains indirect elements + Patch * [PDFBOX-3889] - javax.crypto.BadPaddingException: Given final block not properly padded * [PDFBOX-3909] - End of inline image not detected * [PDFBOX-3919] - Infinite loop while parsing (2) * [PDFBOX-3933] - PDFParser swallows a CR at the end of a stream * [PDFBOX-3942] - ClassCastException in getOptionalContentGroups * [PDFBOX-4005] - Incorrect use of PDNumberTreeNode in PDPageLabels * [PDFBOX-4011] - BBox in signature forms has wrong order * [PDFBOX-4027] - IndexOutOfBoundsException when XObject form matrix has only 5 elements * [PDFBOX-4030] - ClassCastException when matrix array has indirect objects * [PDFBOX-4064] - cm operator has 7 numbers * [PDFBOX-4083] - Line annotation /LL, /LLE and /LLO have wrong default values * [PDFBOX-4088] - Root/StructTreeRoot/K/S must be name, not string (merge) * [PDFBOX-3635] - Remove workaround to avoid SSLHandshakeException * [PDFBOX-4142] - Don't use md5 checksum due to changes to the release distribuition policy - Update to 1.8.13: * [PDFBOX-2420] - DateConverter doesn't handle time zones outside -12 to +12 range properly * [PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException * [PDFBOX-3315] - Dates falsely detected as different by preflight * [PDFBOX-3335] - Issue while Merging PDF with Hidden Layers * [PDFBOX-3341] - currentAccessPermission.setReadOnly() not set in StandardSecurityHandler * [PDFBOX-3355] - PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a * [PDFBOX-3368] - ContainsKey don't work for the Map<String, Object> returned by PDStructureTreeRoot.getRoleMap * [PDFBOX-3369] - Error expected floating point number actual='0.00-35095424' * [PDFBOX-3409] - TextToPDF drops leading spaces * [PDFBOX-3420] - Can't sign pdf with a particular attachment * [PDFBOX-3446] - Infinite loop while parsing * [PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList * [PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment * [PDFBOX-3463] - XMPSchemaBasic.getLabel() always returns null * [PDFBOX-3466] - Java 9 warnings * [PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID * [PDFBOX-3477] - CA and ca values should be clipped * [PDFBOX-3481] - Localization in XRef generation results in unusable PDFs * [PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF * [PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber * [PDFBOX-3500] - Error expected floating point number actual='0.-262' * [PDFBOX-3532] - Java 6 errors * [PDFBOX-3546] - IOException over DataFormatException, "invalid stored block lengths" on a valid PDF * [PDFBOX-3551] - CLI Decrypt broken, only allows 1 argument * [PDFBOX-3555] - FlateFilter.decode cause native memory leaks * [PDFBOX-3558] - NPE in JBig2Filter if BitsPerComponent is missing * [PDFBOX-3570] - JDK-8054565 Java 8 close contract issue * [PDFBOX-3571] - sRGB Color Space Profile is subject to 3rd party copyright * [PDFBOX-3578] - java.lang.IllegalArgumentException: dash lengths all zero * [PDFBOX-3590] - AccessPermission not applied * [PDFBOX-3594] - Use PDOutlineItem#findDestinationPage() cannot get PDPage, return was null * [PDFBOX-3609] - ClassCastException in PDCIDFont.readWidths() * [PDFBOX-3410] - TextToPDF needs orientation control * [PDFBOX-3352] - Calendar values are parsed with unknown timezones - Refresh pdfbox-1.8.12-bouncycastle.patch - Add patch to fix the version number: * fix-version.patch - Use %license OBS-URL: https://build.opensuse.org/request/show/620188 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-pdfbox?expand=0&rev=17
2018-07-02 11:32:27 +02:00
@@ -311,7 +308,7 @@ public class PublicKeySecurityHandler ex
pkcs7input[22] = two;
pkcs7input[23] = one;
- DERObject obj = createDERForRecipient(pkcs7input, certificate);
+ ASN1Primitive obj = createDERForRecipient(pkcs7input, certificate);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Accepting request 620188 from home:favogt:branches:Java:packages - Update to 1.8.15: * [PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects (CVE-2018-8036,bsc#1099721) - Update to 1.8.14: * [PDFBOX-3625] - Use correct file encoding when saving fdf data * [PDFBOX-3724] - Wrong size in rendering of some artifacts * [PDFBOX-3733] - image added to pdf by tool AddImageToPDF is turn-overed * [PDFBOX-3739] - ImageWriterIterator.next() and ImageReaderIterator.next() can return null * [PDFBOX-3742] - Unknown dir object c='>' cInt=62 peek='>' peekInt=62 * [PDFBOX-3813] - PDF Box crash when using PDFToImage or PDFDebug * [PDFBOX-3843] - Rect of Annotation contains indirect elements + Patch * [PDFBOX-3889] - javax.crypto.BadPaddingException: Given final block not properly padded * [PDFBOX-3909] - End of inline image not detected * [PDFBOX-3919] - Infinite loop while parsing (2) * [PDFBOX-3933] - PDFParser swallows a CR at the end of a stream * [PDFBOX-3942] - ClassCastException in getOptionalContentGroups * [PDFBOX-4005] - Incorrect use of PDNumberTreeNode in PDPageLabels * [PDFBOX-4011] - BBox in signature forms has wrong order * [PDFBOX-4027] - IndexOutOfBoundsException when XObject form matrix has only 5 elements * [PDFBOX-4030] - ClassCastException when matrix array has indirect objects * [PDFBOX-4064] - cm operator has 7 numbers * [PDFBOX-4083] - Line annotation /LL, /LLE and /LLO have wrong default values * [PDFBOX-4088] - Root/StructTreeRoot/K/S must be name, not string (merge) * [PDFBOX-3635] - Remove workaround to avoid SSLHandshakeException * [PDFBOX-4142] - Don't use md5 checksum due to changes to the release distribuition policy - Update to 1.8.13: * [PDFBOX-2420] - DateConverter doesn't handle time zones outside -12 to +12 range properly * [PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException * [PDFBOX-3315] - Dates falsely detected as different by preflight * [PDFBOX-3335] - Issue while Merging PDF with Hidden Layers * [PDFBOX-3341] - currentAccessPermission.setReadOnly() not set in StandardSecurityHandler * [PDFBOX-3355] - PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a * [PDFBOX-3368] - ContainsKey don't work for the Map<String, Object> returned by PDStructureTreeRoot.getRoleMap * [PDFBOX-3369] - Error expected floating point number actual='0.00-35095424' * [PDFBOX-3409] - TextToPDF drops leading spaces * [PDFBOX-3420] - Can't sign pdf with a particular attachment * [PDFBOX-3446] - Infinite loop while parsing * [PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList * [PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment * [PDFBOX-3463] - XMPSchemaBasic.getLabel() always returns null * [PDFBOX-3466] - Java 9 warnings * [PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID * [PDFBOX-3477] - CA and ca values should be clipped * [PDFBOX-3481] - Localization in XRef generation results in unusable PDFs * [PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF * [PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber * [PDFBOX-3500] - Error expected floating point number actual='0.-262' * [PDFBOX-3532] - Java 6 errors * [PDFBOX-3546] - IOException over DataFormatException, "invalid stored block lengths" on a valid PDF * [PDFBOX-3551] - CLI Decrypt broken, only allows 1 argument * [PDFBOX-3555] - FlateFilter.decode cause native memory leaks * [PDFBOX-3558] - NPE in JBig2Filter if BitsPerComponent is missing * [PDFBOX-3570] - JDK-8054565 Java 8 close contract issue * [PDFBOX-3571] - sRGB Color Space Profile is subject to 3rd party copyright * [PDFBOX-3578] - java.lang.IllegalArgumentException: dash lengths all zero * [PDFBOX-3590] - AccessPermission not applied * [PDFBOX-3594] - Use PDOutlineItem#findDestinationPage() cannot get PDPage, return was null * [PDFBOX-3609] - ClassCastException in PDCIDFont.readWidths() * [PDFBOX-3410] - TextToPDF needs orientation control * [PDFBOX-3352] - Calendar values are parsed with unknown timezones - Refresh pdfbox-1.8.12-bouncycastle.patch - Add patch to fix the version number: * fix-version.patch - Use %license OBS-URL: https://build.opensuse.org/request/show/620188 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-pdfbox?expand=0&rev=17
2018-07-02 11:32:27 +02:00
@@ -378,7 +375,7 @@ public class PublicKeySecurityHandler ex
}
- private DERObject createDERForRecipient(byte[] in, X509Certificate cert)
+ private ASN1Primitive createDERForRecipient(byte[] in, X509Certificate cert)
throws IOException,
GeneralSecurityException
{
Accepting request 620188 from home:favogt:branches:Java:packages - Update to 1.8.15: * [PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects (CVE-2018-8036,bsc#1099721) - Update to 1.8.14: * [PDFBOX-3625] - Use correct file encoding when saving fdf data * [PDFBOX-3724] - Wrong size in rendering of some artifacts * [PDFBOX-3733] - image added to pdf by tool AddImageToPDF is turn-overed * [PDFBOX-3739] - ImageWriterIterator.next() and ImageReaderIterator.next() can return null * [PDFBOX-3742] - Unknown dir object c='>' cInt=62 peek='>' peekInt=62 * [PDFBOX-3813] - PDF Box crash when using PDFToImage or PDFDebug * [PDFBOX-3843] - Rect of Annotation contains indirect elements + Patch * [PDFBOX-3889] - javax.crypto.BadPaddingException: Given final block not properly padded * [PDFBOX-3909] - End of inline image not detected * [PDFBOX-3919] - Infinite loop while parsing (2) * [PDFBOX-3933] - PDFParser swallows a CR at the end of a stream * [PDFBOX-3942] - ClassCastException in getOptionalContentGroups * [PDFBOX-4005] - Incorrect use of PDNumberTreeNode in PDPageLabels * [PDFBOX-4011] - BBox in signature forms has wrong order * [PDFBOX-4027] - IndexOutOfBoundsException when XObject form matrix has only 5 elements * [PDFBOX-4030] - ClassCastException when matrix array has indirect objects * [PDFBOX-4064] - cm operator has 7 numbers * [PDFBOX-4083] - Line annotation /LL, /LLE and /LLO have wrong default values * [PDFBOX-4088] - Root/StructTreeRoot/K/S must be name, not string (merge) * [PDFBOX-3635] - Remove workaround to avoid SSLHandshakeException * [PDFBOX-4142] - Don't use md5 checksum due to changes to the release distribuition policy - Update to 1.8.13: * [PDFBOX-2420] - DateConverter doesn't handle time zones outside -12 to +12 range properly * [PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException * [PDFBOX-3315] - Dates falsely detected as different by preflight * [PDFBOX-3335] - Issue while Merging PDF with Hidden Layers * [PDFBOX-3341] - currentAccessPermission.setReadOnly() not set in StandardSecurityHandler * [PDFBOX-3355] - PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a * [PDFBOX-3368] - ContainsKey don't work for the Map<String, Object> returned by PDStructureTreeRoot.getRoleMap * [PDFBOX-3369] - Error expected floating point number actual='0.00-35095424' * [PDFBOX-3409] - TextToPDF drops leading spaces * [PDFBOX-3420] - Can't sign pdf with a particular attachment * [PDFBOX-3446] - Infinite loop while parsing * [PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList * [PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment * [PDFBOX-3463] - XMPSchemaBasic.getLabel() always returns null * [PDFBOX-3466] - Java 9 warnings * [PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID * [PDFBOX-3477] - CA and ca values should be clipped * [PDFBOX-3481] - Localization in XRef generation results in unusable PDFs * [PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF * [PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber * [PDFBOX-3500] - Error expected floating point number actual='0.-262' * [PDFBOX-3532] - Java 6 errors * [PDFBOX-3546] - IOException over DataFormatException, "invalid stored block lengths" on a valid PDF * [PDFBOX-3551] - CLI Decrypt broken, only allows 1 argument * [PDFBOX-3555] - FlateFilter.decode cause native memory leaks * [PDFBOX-3558] - NPE in JBig2Filter if BitsPerComponent is missing * [PDFBOX-3570] - JDK-8054565 Java 8 close contract issue * [PDFBOX-3571] - sRGB Color Space Profile is subject to 3rd party copyright * [PDFBOX-3578] - java.lang.IllegalArgumentException: dash lengths all zero * [PDFBOX-3590] - AccessPermission not applied * [PDFBOX-3594] - Use PDOutlineItem#findDestinationPage() cannot get PDPage, return was null * [PDFBOX-3609] - ClassCastException in PDCIDFont.readWidths() * [PDFBOX-3410] - TextToPDF needs orientation control * [PDFBOX-3352] - Calendar values are parsed with unknown timezones - Refresh pdfbox-1.8.12-bouncycastle.patch - Add patch to fix the version number: * fix-version.patch - Use %license OBS-URL: https://build.opensuse.org/request/show/620188 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-pdfbox?expand=0&rev=17
2018-07-02 11:32:27 +02:00
@@ -389,7 +386,7 @@ public class PublicKeySecurityHandler ex
AlgorithmParameters algorithmparameters = algorithmparametergenerator.generateParameters();
ByteArrayInputStream bytearrayinputstream = new ByteArrayInputStream(algorithmparameters.getEncoded("ASN.1"));
ASN1InputStream asn1inputstream = new ASN1InputStream(bytearrayinputstream);
- DERObject derobject = asn1inputstream.readObject();
+ ASN1Primitive derobject = asn1inputstream.readObject();
Accepting request 620188 from home:favogt:branches:Java:packages - Update to 1.8.15: * [PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects (CVE-2018-8036,bsc#1099721) - Update to 1.8.14: * [PDFBOX-3625] - Use correct file encoding when saving fdf data * [PDFBOX-3724] - Wrong size in rendering of some artifacts * [PDFBOX-3733] - image added to pdf by tool AddImageToPDF is turn-overed * [PDFBOX-3739] - ImageWriterIterator.next() and ImageReaderIterator.next() can return null * [PDFBOX-3742] - Unknown dir object c='>' cInt=62 peek='>' peekInt=62 * [PDFBOX-3813] - PDF Box crash when using PDFToImage or PDFDebug * [PDFBOX-3843] - Rect of Annotation contains indirect elements + Patch * [PDFBOX-3889] - javax.crypto.BadPaddingException: Given final block not properly padded * [PDFBOX-3909] - End of inline image not detected * [PDFBOX-3919] - Infinite loop while parsing (2) * [PDFBOX-3933] - PDFParser swallows a CR at the end of a stream * [PDFBOX-3942] - ClassCastException in getOptionalContentGroups * [PDFBOX-4005] - Incorrect use of PDNumberTreeNode in PDPageLabels * [PDFBOX-4011] - BBox in signature forms has wrong order * [PDFBOX-4027] - IndexOutOfBoundsException when XObject form matrix has only 5 elements * [PDFBOX-4030] - ClassCastException when matrix array has indirect objects * [PDFBOX-4064] - cm operator has 7 numbers * [PDFBOX-4083] - Line annotation /LL, /LLE and /LLO have wrong default values * [PDFBOX-4088] - Root/StructTreeRoot/K/S must be name, not string (merge) * [PDFBOX-3635] - Remove workaround to avoid SSLHandshakeException * [PDFBOX-4142] - Don't use md5 checksum due to changes to the release distribuition policy - Update to 1.8.13: * [PDFBOX-2420] - DateConverter doesn't handle time zones outside -12 to +12 range properly * [PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException * [PDFBOX-3315] - Dates falsely detected as different by preflight * [PDFBOX-3335] - Issue while Merging PDF with Hidden Layers * [PDFBOX-3341] - currentAccessPermission.setReadOnly() not set in StandardSecurityHandler * [PDFBOX-3355] - PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a * [PDFBOX-3368] - ContainsKey don't work for the Map<String, Object> returned by PDStructureTreeRoot.getRoleMap * [PDFBOX-3369] - Error expected floating point number actual='0.00-35095424' * [PDFBOX-3409] - TextToPDF drops leading spaces * [PDFBOX-3420] - Can't sign pdf with a particular attachment * [PDFBOX-3446] - Infinite loop while parsing * [PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList * [PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment * [PDFBOX-3463] - XMPSchemaBasic.getLabel() always returns null * [PDFBOX-3466] - Java 9 warnings * [PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID * [PDFBOX-3477] - CA and ca values should be clipped * [PDFBOX-3481] - Localization in XRef generation results in unusable PDFs * [PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF * [PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber * [PDFBOX-3500] - Error expected floating point number actual='0.-262' * [PDFBOX-3532] - Java 6 errors * [PDFBOX-3546] - IOException over DataFormatException, "invalid stored block lengths" on a valid PDF * [PDFBOX-3551] - CLI Decrypt broken, only allows 1 argument * [PDFBOX-3555] - FlateFilter.decode cause native memory leaks * [PDFBOX-3558] - NPE in JBig2Filter if BitsPerComponent is missing * [PDFBOX-3570] - JDK-8054565 Java 8 close contract issue * [PDFBOX-3571] - sRGB Color Space Profile is subject to 3rd party copyright * [PDFBOX-3578] - java.lang.IllegalArgumentException: dash lengths all zero * [PDFBOX-3590] - AccessPermission not applied * [PDFBOX-3594] - Use PDOutlineItem#findDestinationPage() cannot get PDPage, return was null * [PDFBOX-3609] - ClassCastException in PDCIDFont.readWidths() * [PDFBOX-3410] - TextToPDF needs orientation control * [PDFBOX-3352] - Calendar values are parsed with unknown timezones - Refresh pdfbox-1.8.12-bouncycastle.patch - Add patch to fix the version number: * fix-version.patch - Use %license OBS-URL: https://build.opensuse.org/request/show/620188 OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-pdfbox?expand=0&rev=17
2018-07-02 11:32:27 +02:00
KeyGenerator keygenerator;
try
{