Skip to content

Prevent exception in ZipAESTransform#272

Merged
piksel merged 1 commit into
masterfrom
aes-transform-fix
Nov 12, 2018
Merged

Prevent exception in ZipAESTransform#272
piksel merged 1 commit into
masterfrom
aes-transform-fix

Conversation

@piksel
Copy link
Copy Markdown
Member

@piksel piksel commented Sep 16, 2018

As long as inputCount is 0, no actual work has to be done inside TransformFinalBlock so no exception should be thrown.
This should fix AES decryption since the last block is handled by TransformBlock as far as I can tell.

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

If the inputCount is 0 it should be fine to just return an empty array.
@piksel piksel changed the title Prevent exception in ZipAESTRansform Prevent exception in ZipAESTransform Sep 16, 2018
@piksel piksel added this to the v1.1 milestone Oct 27, 2018
@piksel piksel merged commit 96e5c1f into master Nov 12, 2018
@piksel piksel deleted the aes-transform-fix branch November 12, 2018 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant