Commit Graph

1209 Commits

Author SHA1 Message Date
Timofey Solomko 8af69fb15b Switch to the generalize-source branch of BBD
Additionally, adjust DecodingTree to make it work with the generalize-source branch.
2021-03-26 15:33:41 +02:00
Timofey Solomko 69bfcfccda Merge branch 'hotfix-4.5.8' into develop 2021-03-26 15:00:51 +02:00
Timofey Solomko 4445b0f561 Prepare for 4.5.8 release 2021-03-26 13:50:26 +02:00
Timofey Solomko 1fca632c2d Update copyright year to 2021 2021-03-26 13:50:20 +02:00
Timofey Solomko 1f7a5352a7 [BZip2] Explain zero RLE in the comments 2021-01-18 16:07:44 +02:00
Timofey Solomko e83f23effa Update copyright year to 2021 2021-01-11 11:20:57 +02:00
Timofey Solomko deab72a831 Merge branch 'hotfix-4.5.7' into develop 2020-10-16 15:57:08 +03:00
Timofey Solomko fc38cc19df Prepare for 4.5.7 release 2020-10-16 15:49:05 +03:00
Timofey Solomko a07fc290a0 Small fixes to code comments 2020-10-15 23:35:34 +03:00
Timofey Solomko 00af5a9319 [BZip2][GZip][LZMA][XZ][Zlib] Fix crashes when opening very small files
Instead errors are now thrown.
2020-10-15 23:35:34 +03:00
Timofey Solomko 3670bba2d1 [7-Zip] Fix a crash when opening a very small file
Such files (smaller than 32 bytes) definitely don't have a SignatureHeader and in this case SevenZipError.wrongSignature should be properly thrown.
2020-10-15 23:35:25 +03:00
Timofey Solomko 9360a8a9b8 [ZIP] Fix a crash when opening a very small file
Such files (smaller than 22 bytes) definitely don't have a EndOfCD and in this case ZipError.notFoundCentralDirectoryEnd should be properly thrown.
2020-10-15 23:35:22 +03:00
Timofey Solomko fa552e9b61 [ZIP] Fix a crash when opening a file without EndOfCD
Now ZipError.notFoundCentralDirectoryEnd is correctly thrown as was originally intended.
2020-10-14 23:51:27 +03:00
Timofey Solomko ab75e0944f [BZip2] Fix compilation warning 2020-10-14 23:45:46 +03:00
Timofey Solomko 2909f4e0c7 Merge branch 'hotfix-4.5.6' into develop 2020-09-24 23:13:26 +03:00
Timofey Solomko cc68f9eb91 Prepare for 4.5.6 release 2020-09-24 23:10:49 +03:00
Timofey Solomko 2c46351a44 Fix building issue with swift 5.3 on linux 2020-09-24 13:06:54 +03:00
Timofey Solomko 8ef90146e7 [swcomp] Improve the usage of articles in help messages 2020-05-18 13:18:32 +03:00
Timofey Solomko a984486c62 [swcomp] Don't print zip comment if it's empty 2020-05-18 13:17:17 +03:00
Timofey Solomko 761f0a0a3f Merge branch 'hotfix-4.5.5' into develop 2020-04-27 16:16:50 +03:00
Timofey Solomko 69e0498bd2 Prepare for 4.5.5 release 2020-04-27 16:13:26 +03:00
Timofey Solomko 1ed0cdfdfa [ZIP] Fix a crash when encountering non well-formed Extended Timestamp
ZIP files produced by Finder on certain versions of macOS sometimes contain incorrect Extended Timestamp extra field in their Central Directory. When trying to open such files, SWCompression was crashing. This change makes SWCompression ignore "incorrectness" in Extended Timestamp.
2020-04-26 23:11:14 +03:00
Timofey Solomko 247def898b [BZip2][ZIP] Small code optimizations
A variable in BZip2 code changed to let-constant and two fields of ZIP's "end of central directory" struct are no longer properties since they aren't used anywhere.
2020-04-16 22:41:41 +03:00
Timofey Solomko 0f15e1c29b Remove Swift-4.2-support code-path from Sha256.swift 2020-04-11 23:56:37 +03:00
Timofey Solomko d005d8f87f Merge branch 'hotfix-4.5.4' into develop 2020-04-11 01:01:11 +03:00
Timofey Solomko b1d9b4450a Prepare for 4.5.4 release 2020-04-11 00:54:43 +03:00
Timofey Solomko 083ce9ba44 Prepare for 4.5.3 release 2020-03-20 19:54:01 +03:00
Timofey Solomko c7ecaa418a Add a code-path to Sha256.swift to support Swift pre-5.0 2020-03-20 10:01:38 +03:00
Timofey Solomko a844b34436 Update copyright year to 2020 2020-03-20 09:43:42 +03:00
Timofey Solomko 36164725b6 Use the non-deprecated version of the Data.withUnsafeBytes function in Sha256 2020-03-20 09:42:05 +03:00
Timofey Solomko 94ab3ba1f5 Replace usage of deprecated index(...) functions with the new ones 2020-03-20 09:41:52 +03:00
Timofey Solomko fafb9cde87 Move public identifier from extension to enum itself (BZip2.BlockSize) 2020-03-20 09:41:38 +03:00
Timofey Solomko f6949a8f66 Replace the usage of the deprecated Data(bytes:) initializer 2020-03-20 09:40:48 +03:00
Timofey Solomko 82f150d437 Use LsbBitReader argument in the Gzip and Zlib headers' initializers
This fixes issues arising from the removal of _subclass_ relations between bit and byte readers in BBD.
2020-01-02 12:29:24 +03:00
Timofey Solomko 31ec1f1553 Update copyright year to 2020 2020-01-01 19:06:33 +03:00
Timofey Solomko c987e8b4f9 Prepare for 4.5.2 release 2019-06-08 22:22:20 +03:00
Timofey Solomko 5c4af98ff8 Use the non-deprecated version of the Data.withUnsafeBytes function in Sha256 2019-05-01 19:41:09 +03:00
Timofey Solomko 35a93815b3 Replace usage of deprecated index(...) functions with the new ones 2019-05-01 19:39:41 +03:00
Timofey Solomko 8d0e6d5567 Move public identifier from extension to enum itself (BZip2.BlockSize) 2019-05-01 19:39:14 +03:00
Timofey Solomko 04b87f9e95 Mark @inline(__always) functions as @inlinable 2019-05-01 19:36:51 +03:00
Timofey Solomko 75b21ae107 Replace usage of ByteReader with LittleEndianByteReader 2019-05-01 19:34:30 +03:00
Timofey Solomko db82490ed8 Replace the usage of the deprecated Data(bytes:) initializer 2019-05-01 19:30:48 +03:00
Timofey Solomko 4d89503b44 Prepare for 4.5.1 release 2019-03-13 13:19:43 +03:00
Timofey Solomko c93a783d21 [docs] Fix grammar issues with regards to a/the/null articles, while/during, and extra commas 2019-03-13 12:27:08 +03:00
Timofey Solomko e518961218 [LZMA] Add public LZMAProperties.init() which uses default values of lc, etc. 2019-03-13 12:17:18 +03:00
Timofey Solomko 5ebe98796f [LZMA] Add default values for lc, lp, pb, and dictionarySize properties of LZMAProperties 2019-03-13 12:16:42 +03:00
Timofey Solomko 04f64bcb72 Rename Encoding/DecodingHuffmanTree to just Encoding/DecodingTree 2019-03-12 22:31:35 +03:00
Timofey Solomko 142fd44dd2 Remove old CodeLength initializer from Encoding(Huffman)Tree 2019-03-12 22:31:24 +03:00
Timofey Solomko 250c9fbd4c Remove old CodeLength initializer from Decoding(Huffman)Tree 2019-03-12 22:31:13 +03:00
Timofey Solomko 5e51968ca6 Add a func which generates Huffman codes based on their lengths 2019-03-12 22:31:02 +03:00