Closed cr4zyserb closed 6 months ago
Thanks for the catch! I wasn't very familiar with Java streams at the time so that was a mistake on my part 😅
Would you be kind enough to make a PR instead? So that'd count as a contribution. Thanks!
You're welcome. I think it is easier if you fix it directly in the code. If you prefer that I do PR, I can do it, but it is such a minor fix that it is not even worth considering it as a contribution :smiley:
Sure, if you said so! Thanks for the fix
Error is in the code here:
should be:
Original code would write extra data at the end in the most cases, except when
file_size % 8192 == 0
, which would cause apksigner to fail with Malformed APK: not a ZIP archive