GitHub user ctron opened a pull request:
https://github.com/apache/commons-compress/pull/67
[COMPRESS-459] Fix reading of multibyte name entries
This fixes COMPRESS-459 by using the name number of bytes from the field
in the stream instead of relying on the assumption that each character
is exactly one byte, which isn't true for UTF-8, UTF-16 or other
multi-byte character encodings.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ctron/commons-compress
feature/fix_COMPRESS_459_1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-compress/pull/67.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #67
----
commit 715352d3343358539a40b9623a9a00beb115ff30
Author: Jens Reimann <jreimann@...>
Date: 2018-07-09T09:41:43Z
[COMPRESS-459] Fix reading of multibyte name entries
This fixes COMPRESS-459 by using the name number of bytes from the field
in the stream instead of relying on the assumption that each character
is exactly one byte, which isn't true for UTF-8, UTF-16 or other
multi-byte character encodings.
----
---