Skip to content

Commit 96e5c1f

Browse files
authored
Merge PR #272: Prevent exception in ZipAESTransform
1 parent 5ff738b commit 96e5c1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ICSharpCode.SharpZipLib/Encryption/ZipAESTransform.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,11 @@ public byte[] GetAuthCode()
155155
/// </summary>
156156
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
157157
{
158-
159-
throw new NotImplementedException("ZipAESTransform.TransformFinalBlock");
158+
if(inputCount > 0)
159+
{
160+
throw new NotImplementedException("TransformFinalBlock is not implemented and inputCount is greater than 0");
161+
}
162+
return new byte[0];
160163
}
161164

162165
/// <summary>

0 commit comments

Comments
 (0)