You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2017/04/26 04:26:04 UTC
[jira] [Resolved] (COMPRESS-389) Inconsistent increment of 'loc' in
ZipFile.BoundedInputStream
[ https://issues.apache.org/jira/browse/COMPRESS-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved COMPRESS-389.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.14
fixed with commit 0ee8f1e
> Inconsistent increment of 'loc' in ZipFile.BoundedInputStream
> -------------------------------------------------------------
>
> Key: COMPRESS-389
> URL: https://issues.apache.org/jira/browse/COMPRESS-389
> Project: Commons Compress
> Issue Type: Bug
> Reporter: Sebb
> Fix For: 1.14
>
>
> ZipFile.BoundedInputStream.read() always increments loc, even if no bytes are read.
> However ZipFile.BoundedInputStream.read(byte[] b, int off, int len) only increments the field if some bytes were read.
> This looks wrong.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)