Replies: 1 comment
-
|
It's intended. Better to use the work around. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not yet sure if this is a bug or intended (maybe upcoming CVE?). In 1.85
new CMSSignedData(byte[])checks whether there are remaining bytes and throws an exception inASN1Primitive.fromByteArray()if there are. Which is what happens with PDF signatures because the length of the signature isn't known in advance, so the signature is written in a zero-allocated area. The change was made here:ca74bb8
The workaround is to wrap the byte array in a ByteArrayInputStream :-(
Beta Was this translation helpful? Give feedback.
All reactions