From e8d103776bb8c0f120c6168aba4e55feb3148fe4 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sat, 24 Dec 2016 14:04:18 +0300 Subject: [PATCH] Fixed padding processing for blocks and index once again. --- Sources/XZArchive.swift | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Sources/XZArchive.swift b/Sources/XZArchive.swift index d110864c..e03a981f 100644 --- a/Sources/XZArchive.swift +++ b/Sources/XZArchive.swift @@ -278,11 +278,13 @@ public class XZArchive: Archive { let unpaddedSize = pointerData.index - blockHeaderStartIndex - let paddingSize = unpaddedSize % 4 - for _ in 0..