Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 10A7B200C12 for ; Sun, 5 Feb 2017 14:35:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0F327160B59; Sun, 5 Feb 2017 13:35:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 587F9160B32 for ; Sun, 5 Feb 2017 14:35:45 +0100 (CET) Received: (qmail 90008 invoked by uid 500); 5 Feb 2017 13:35:44 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 89999 invoked by uid 99); 5 Feb 2017 13:35:44 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2017 13:35:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 57A25DFC31; Sun, 5 Feb 2017 13:35:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bodewig@apache.org To: commits@commons.apache.org Message-Id: <868a541fb89444a1a94c7865145f3756@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: commons-compress git commit: COMPRESS-271 must reset checksum before reading next frame Date: Sun, 5 Feb 2017 13:35:44 +0000 (UTC) archived-at: Sun, 05 Feb 2017 13:35:46 -0000 Repository: commons-compress Updated Branches: refs/heads/master 25ecc9b17 -> 2239893ab COMPRESS-271 must reset checksum before reading next frame Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/2239893a Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/2239893a Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/2239893a Branch: refs/heads/master Commit: 2239893abcf199fa9d8cf4c63ff8ef0d904f5a23 Parents: 25ecc9b Author: Stefan Bodewig Authored: Sun Feb 5 14:31:52 2017 +0100 Committer: Stefan Bodewig Committed: Sun Feb 5 14:34:53 2017 +0100 ---------------------------------------------------------------------- .../compress/compressors/lz4/FramedLZ4CompressorInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-compress/blob/2239893a/src/main/java/org/apache/commons/compress/compressors/lz4/FramedLZ4CompressorInputStream.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/compress/compressors/lz4/FramedLZ4CompressorInputStream.java b/src/main/java/org/apache/commons/compress/compressors/lz4/FramedLZ4CompressorInputStream.java index e597b5a..115a2d6 100644 --- a/src/main/java/org/apache/commons/compress/compressors/lz4/FramedLZ4CompressorInputStream.java +++ b/src/main/java/org/apache/commons/compress/compressors/lz4/FramedLZ4CompressorInputStream.java @@ -254,8 +254,8 @@ public class FramedLZ4CompressorInputStream extends CompressorInputStream { if (expectedHash != ByteUtils.fromLittleEndian(checksum)) { throw new IOException("content checksum mismatch."); } - contentHash.reset(); } + contentHash.reset(); } private int readOneByte() throws IOException {