Skip to content

Commit

Permalink
Merge branch 'hotfix-4.8.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolomko committed May 13, 2022
2 parents 4ad6940 + f72ed96 commit 0714d44
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ sourcekitten_sourcefile: docs.json
clean: false
author: Timofey Solomko
module: SWCompression
module_version: 4.8.0
module_version: 4.8.1
copyright: '© 2022 Timofey Solomko'
readme: README.md
github_url: https://github.com/tsolomko/SWCompression
github_file_prefix: https://github.com/tsolomko/SWCompression/tree/4.8.0
github_file_prefix: https://github.com/tsolomko/SWCompression/tree/4.8.1
theme: fullwidth

custom_categories:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 4.8.1

- Fix incorrect detection of truncated GZip archives.

## 4.8.0

- Added `TarReader` and `TarWriter` structs which allow more iterative work with TAR containers while helping with
Expand Down
2 changes: 1 addition & 1 deletion SWCompression.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SWCompression"
s.version = "4.8.0"
s.version = "4.8.1"
s.summary = "A framework with functions for working with compression, archives and containers."

s.description = "A framework with (de)compression algorithms and functions for processing various archives and containers."
Expand Down
4 changes: 2 additions & 2 deletions SWCompression.xcodeproj/SWCompression.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>4.8.0</string>
<string>4.8.1</string>
<key>CFBundleVersion</key>
<string>85</string>
<string>86</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2022 Timofey Solomko</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions SWCompression.xcodeproj/TestSWCompression.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>4.8.0</string>
<string>4.8.1</string>
<key>CFBundleVersion</key>
<string>85</string>
<string>86</string>
</dict>
</plist>
8 changes: 4 additions & 4 deletions SWCompression.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CURRENT_PROJECT_VERSION = 85;
CURRENT_PROJECT_VERSION = 86;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down Expand Up @@ -1593,7 +1593,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CURRENT_PROJECT_VERSION = 85;
CURRENT_PROJECT_VERSION = 86;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
"FRAMEWORK_SEARCH_PATHS[sdk=appletvos*]" = (
Expand Down Expand Up @@ -1654,7 +1654,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 85;
DYLIB_CURRENT_VERSION = 86;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = SWCompression.xcodeproj/SWCompression.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand All @@ -1681,7 +1681,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 85;
DYLIB_CURRENT_VERSION = 86;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = SWCompression.xcodeproj/SWCompression.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down
4 changes: 2 additions & 2 deletions Sources/GZip/GzipArchive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public class GzipArchive: Archive {
}

private static func processMember(_ bitReader: LsbBitReader) throws -> Member {
// Valid GZip archive must contain at least 33 bytes of data.
guard bitReader.bitsLeft >= 33 * 8
// Valid GZip archive must contain at least 18 bytes of data (10 for header and 8 for checksums).
guard bitReader.bitsLeft >= 18 * 8
else { throw GzipError.wrongMagic }

let header = try GzipHeader(bitReader)
Expand Down
2 changes: 1 addition & 1 deletion Sources/swcomp/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation
import SWCompression
import SwiftCLI

let cli = CLI(name: "swcomp", version: "4.8.0",
let cli = CLI(name: "swcomp", version: "4.8.1",
description: """
swcomp - a small command-line client for SWCompression framework.
Serves as an example of SWCompression usage.
Expand Down

0 comments on commit 0714d44

Please sign in to comment.