Timofey Solomko
7c54d2b991
[TAR] Implement TarHeader.generateContainerData
2021-07-24 14:10:04 +03:00
Timofey Solomko
082aaf5092
[TAR] Reorder and comment properties of TarHeader to clarify used formats
2021-07-24 14:09:34 +03:00
Timofey Solomko
11a2054498
[TAR] Move Data extensions from TarEntryInfo into separate file
...
In addition Data.append(tarString:maxLength:) has been modified to not be throwing.
2021-07-24 13:56:52 +03:00
Timofey Solomko
0bc1987500
[TAR] Add two new initializers to TarHeader
...
One creates a header based on TarEntryInfo, and the second one creates a header for special entries like pax headers.
2021-07-23 16:52:42 +03:00
Timofey Solomko
bdf22b2cc5
[TAR] Add a Data extension function which pads to 512 bytes and appends
2021-07-23 16:40:21 +03:00
Timofey Solomko
1730eabc1c
[TAR] TarEntryInfo (internal) init is no longer throwing
2021-07-23 15:18:39 +03:00
Timofey Solomko
1ec17a3137
[TAR] Rename several properties of TarHeader for consistency
2021-07-22 23:52:54 +03:00
Timofey Solomko
a65f66c473
[TAR] Update TarEntryInfo.init and TarEntryInfoProvider to use TarHeader
...
Temporarily we had to leave the code that is being moved to TarHeader (such as TarEntryInfo.specialEntryType and blockStartIndex properties), because the format and create functionalities of TAR currently rely on it being present in TarEntryInfo to work. However, we were able to remove TarEntryInfo.SpecialEntryType enum, and use the TarHeader's version of it.
2021-07-22 23:49:47 +03:00
Timofey Solomko
0815fee187
[TAR] Rename TarEntryInfoProvider.byteReader to reader
2021-07-22 23:08:19 +03:00
Timofey Solomko
64a85690a3
[XZ] Remove wrong doc comment for a private processPadding function
2021-07-21 20:22:55 +03:00
Timofey Solomko
bc3362c568
[TAR] Add TarHeader struct
2021-07-21 20:22:20 +03:00
Timofey Solomko
cb8a6738a0
[Common] Change DeltaFilter from final class to enum
2021-07-21 19:47:30 +03:00
Timofey Solomko
cb730a334d
[LZMA] Change LZMAConstants from struct to enum
2021-07-21 19:47:05 +03:00
Timofey Solomko
7646ec34a1
[TAR] Remove pre-Swift 5.0 crash workaround
2021-07-21 19:34:48 +03:00
Timofey Solomko
aba14af8c5
Small changes to code comments
2021-07-17 11:14:53 +03:00
Timofey Solomko
5245a73a6c
Merge branch 'hotfix-4.5.11' into develop
2021-06-12 18:53:45 +03:00
Timofey Solomko
ff5732a714
Prepare for 4.5.11 release
2021-06-12 18:50:39 +03:00
Timofey Solomko
1fa0abce06
[docs] Add docs for LZMAProperties.init()
2021-06-12 18:39:35 +03:00
Timofey Solomko
f766fbc7ed
[TAR] Add a comment explaining why the new data indices check uses strict inequalitites
2021-06-09 21:14:58 +03:00
Timofey Solomko
d197d76769
[TAR] Check if the data is truncated before extracting entry data
2021-06-08 20:26:42 +03:00
Timofey Solomko
c19694aa12
Merge branch 'hotfix-4.5.10' into develop
2021-05-23 00:10:17 +03:00
Timofey Solomko
233e0c8042
Prepare for 4.5.10 release
2021-05-22 23:48:27 +03:00
Timofey Solomko
73dec6720e
[BZip2] Combine MTF and RLE steps in compression
2021-05-22 23:35:03 +03:00
Timofey Solomko
5f7141fd78
Replace Int arrays in EncodingTree with a new CodingIndex struct
...
The hope is that this will improve memory layout/management, and, consequently, improve performance (slightly).
2021-05-22 23:34:31 +03:00
Timofey Solomko
b5e98b66cd
[BZip2] Explain zero RLE in the comments
...
(cherry picked from commit 1f7a5352a7 )
2021-05-13 23:51:52 +03:00
Eric Thorpe
dd35247f18
[ZIP] Fix CP437 support on Windows
...
(cherry picked from commit 69eb11437a )
2021-05-13 22:01:27 +03:00
Eric Thorpe
69eb11437a
[ZIP] Fix CP437 support on Windows
2021-05-13 21:54:16 +03:00
Timofey Solomko
03d47628a1
Merge branch 'hotfix-4.5.9' into develop
2021-05-01 16:14:33 +03:00
Timofey Solomko
b1519f4f11
Prepare for 4.5.9 release
2021-05-01 15:57:07 +03:00
Timofey Solomko
f808a8b9b3
[BZip2] Fix a crash on non-standard run length greater than 255
2021-05-01 13:45:02 +03:00
Timofey Solomko
2d1ff23436
Convert LZMA/LZMA2 internal types to structs
...
This change results in a performance boost due to reduction in retain/release calls.
2021-04-21 22:59:17 +03: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