]> source.dussan.org Git - poi.git/commit
Bug 66436: Fix invalid handling of padded encrypted bytes
authorDominik Stadler <centic@apache.org>
Sun, 5 Feb 2023 21:11:03 +0000 (21:11 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 5 Feb 2023 21:11:03 +0000 (21:11 +0000)
commit1ca2e638ed1de3438cf660f1006d6cd42e265e3c
treea5af456ce62ca4f6c5449920b4f97acc46dde0bc
parent43551babf1cf628aa184a2f9445412815781dc9e
Bug 66436: Fix invalid handling of padded encrypted bytes

The encrypted data is padded to 16 bytes, but these additional bytes
were not read from the stream

Make the reading of the additional bytes "lenient" to not introduce
breaking change if some existing functionality did produce non-aligned
data for some reason.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907444 13f79535-47bb-0310-9956-ffa450edef68
poi-ooxml/src/test/java/org/apache/poi/poifs/crypt/tests/TestAgileEncryptionParameters.java
poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
poi/src/main/java/org/apache/poi/poifs/crypt/ChunkedCipherInputStream.java
poi/src/test/java/org/apache/poi/poifs/crypt/agile/TestAgileDecryptor.java [new file with mode: 0644]