Skip to content

Commit 6dd904a

Browse files
authored
1 parent 22d9aeb commit 6dd904a

9 files changed

+87
-226
lines changed

acknow.txt

+59-59
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
1-
ACKNOWLEDGMENTS
2-
3-
* We used "Screaming Fast Galois Field Arithmetic Using Intel
4-
SIMD Instructions" paper by James S. Plank, Kevin M. Greenan
5-
and Ethan L. Miller to improve Reed-Solomon coding performance.
6-
Also we are grateful to Artem Drobanov and Bulat Ziganshin
7-
for samples and ideas allowed to make Reed-Solomon coding
8-
more efficient.
9-
10-
* RAR4 text compression algorithm is based on Dmitry Shkarin PPMII
11-
and Dmitry Subbotin carryless rangecoder public domain source code.
12-
You can find it in ftp.elf.stuba.sk/pub/pc/pack.
13-
14-
* RAR encryption includes parts of public domain code
15-
from Szymon Stefanek AES and Steve Reid SHA-1 implementations.
16-
17-
* With exception of SFX modules, RAR uses CRC32 function based
18-
on Intel Slicing-by-8 algorithm. Original Intel Slicing-by-8 code
19-
is available here:
20-
21-
https://sourceforge.net/projects/slicing-by-8/
22-
23-
Original Intel Slicing-by-8 code is licensed under BSD License
24-
available at http://www.opensource.org/licenses/bsd-license.html
25-
26-
Copyright (c) 2004-2006 Intel Corporation.
27-
All Rights Reserved
28-
29-
Redistribution and use in source and binary forms, with or without
30-
modification, are permitted provided that the following conditions
31-
are met:
32-
33-
Redistributions of source code must retain the above copyright notice,
34-
this list of conditions and the following disclaimer.
35-
36-
Redistributions in binary form must reproduce the above copyright
37-
notice, this list of conditions and the following disclaimer
38-
in the documentation and/or other materials provided with
39-
the distribution.
40-
41-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
42-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
43-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
44-
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
45-
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
48-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
49-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
50-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
51-
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
52-
SUCH DAMAGE.
53-
54-
* RAR archives may optionally include BLAKE2sp hash ( https://blake2.net ),
55-
designed by Jean-Philippe Aumasson, Samuel Neves, Zooko Wilcox-O'Hearn
56-
and Christian Winnerlein.
57-
58-
* Useful hints provided by Alexander Khoroshev and Bulat Ziganshin allowed
59-
to significantly improve RAR compression and speed.
1+
ACKNOWLEDGMENTS
2+
3+
* We used "Screaming Fast Galois Field Arithmetic Using Intel
4+
SIMD Instructions" paper by James S. Plank, Kevin M. Greenan
5+
and Ethan L. Miller to improve Reed-Solomon coding performance.
6+
Also we are grateful to Artem Drobanov and Bulat Ziganshin
7+
for samples and ideas allowed to make Reed-Solomon coding
8+
more efficient.
9+
10+
* RAR4 text compression algorithm is based on Dmitry Shkarin PPMII
11+
and Dmitry Subbotin carryless rangecoder public domain source code.
12+
You can find it in ftp.elf.stuba.sk/pub/pc/pack.
13+
14+
* RAR encryption includes parts of public domain code
15+
from Szymon Stefanek AES and Steve Reid SHA-1 implementations.
16+
17+
* With exception of SFX modules, RAR uses CRC32 function based
18+
on Intel Slicing-by-8 algorithm. Original Intel Slicing-by-8 code
19+
is available here:
20+
21+
https://sourceforge.net/projects/slicing-by-8/
22+
23+
Original Intel Slicing-by-8 code is licensed under BSD License
24+
available at http://www.opensource.org/licenses/bsd-license.html
25+
26+
Copyright (c) 2004-2006 Intel Corporation.
27+
All Rights Reserved
28+
29+
Redistribution and use in source and binary forms, with or without
30+
modification, are permitted provided that the following conditions
31+
are met:
32+
33+
Redistributions of source code must retain the above copyright notice,
34+
this list of conditions and the following disclaimer.
35+
36+
Redistributions in binary form must reproduce the above copyright
37+
notice, this list of conditions and the following disclaimer
38+
in the documentation and/or other materials provided with
39+
the distribution.
40+
41+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
42+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
43+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
44+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
45+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
48+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
49+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
50+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
51+
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
52+
SUCH DAMAGE.
53+
54+
* RAR archives may optionally include BLAKE2sp hash ( https://blake2.net ),
55+
designed by Jean-Philippe Aumasson, Samuel Neves, Zooko Wilcox-O'Hearn
56+
and Christian Winnerlein.
57+
58+
* Useful hints provided by Alexander Khoroshev and Bulat Ziganshin allowed
59+
to significantly improve RAR compression and speed.

arcmem.cpp

-67
This file was deleted.

arcmem.hpp

-22
This file was deleted.

dll.rc

+24-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1-
#include <windows.h>
2-
#include <commctrl.h>
3-
4-
VS_VERSION_INFO VERSIONINFO
1+
#include <windows.h>
2+
#include <commctrl.h>
3+
4+
VS_VERSION_INFO VERSIONINFO
55
FILEVERSION 6, 10, 2, 318
66
PRODUCTVERSION 6, 10, 2, 318
7-
FILEOS VOS__WINDOWS32
8-
FILETYPE VFT_APP
9-
{
10-
BLOCK "StringFileInfo"
11-
{
12-
BLOCK "040904E4"
13-
{
14-
VALUE "CompanyName", "Alexander Roshal\0"
15-
VALUE "ProductName", "RAR decompression library\0"
16-
VALUE "FileDescription", "RAR decompression library\0"
7+
FILEOS VOS__WINDOWS32
8+
FILETYPE VFT_APP
9+
{
10+
BLOCK "StringFileInfo"
11+
{
12+
BLOCK "040904E4"
13+
{
14+
VALUE "CompanyName", "Alexander Roshal\0"
15+
VALUE "ProductName", "RAR decompression library\0"
16+
VALUE "FileDescription", "RAR decompression library\0"
1717
VALUE "FileVersion", "6.10.2\0"
1818
VALUE "ProductVersion", "6.10.2\0"
19-
VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2021\0"
20-
VALUE "OriginalFilename", "Unrar.dll\0"
21-
}
22-
}
23-
BLOCK "VarFileInfo"
24-
{
25-
VALUE "Translation", 0x0409, 0x04E4
26-
}
27-
}
19+
VALUE "LegalCopyright", "Copyright � Alexander Roshal 1993-2021\0"
20+
VALUE "OriginalFilename", "Unrar.dll\0"
21+
}
22+
}
23+
BLOCK "VarFileInfo"
24+
{
25+
VALUE "Translation", 0x0409, 0x04E4
26+
}
27+
}
28+

extract.cpp

+1-13
Original file line numberDiff line numberDiff line change
@@ -783,14 +783,6 @@ bool CmdExtract::ExtractCurrentFile(Archive &Arc,size_t HeaderSize,bool &Repeat)
783783
// both target and link attributes if PrepareToDelete() changed them.
784784
bool SetAttrOnly=LinkEntry && Arc.FileHead.RedirType==FSREDIR_HARDLINK && LinkSuccess;
785785

786-
// If we successfully unpacked a hard link, we wish to set its file
787-
// attributes. Hard link shares file metadata with link target,
788-
// so we do not need to set link time or owner. But when we overwrite
789-
// an existing link, we can call PrepareToDelete(), which affects
790-
// link target attributes as well. So we set link attributes to restore
791-
// both target and link attributes if PrepareToDelete() changed them.
792-
bool SetAttrOnly=LinkEntry && Arc.FileHead.RedirType==FSREDIR_HARDLINK && LinkSuccess;
793-
794786
if (!TestMode && (Command=='X' || Command=='E') &&
795787
(!LinkEntry || SetAttrOnly || Arc.FileHead.RedirType==FSREDIR_FILECOPY && LinkSuccess) &&
796788
(!BrokenFile || Cmd->KeepBroken))
@@ -1049,11 +1041,7 @@ bool CmdExtract::ExtrGetPassword(Archive &Arc,const wchar *ArcFileName)
10491041
if (!uiGetPassword(UIPASSWORD_FILE,ArcFileName,&Cmd->Password)/* || !Cmd->Password.IsSet()*/)
10501042
{
10511043
// Suppress "test is ok" message if user cancelled the password prompt.
1052-
// 2019.03.23: If some archives are tested ok and prompt is cancelled for others,
1053-
// do we really need to suppress "test is ok"? Also if we set an empty password
1054-
// and "Use for all archives" in WinRAR Ctrl+P and skip some encrypted archives.
1055-
// We commented out this UIERROR_INCERRCOUNT for now.
1056-
// uiMsg(UIERROR_INCERRCOUNT);
1044+
uiMsg(UIERROR_INCERRCOUNT);
10571045
return false;
10581046
}
10591047
Cmd->ManualPassword=true;

loclang.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,4 +393,4 @@
393393
#define MTruncPsw L"\nPassword exceeds the maximum allowed length of %u characters and will be truncated."
394394
#define MAdjustValue L"\nAdjusting %s value to %s."
395395
#define MOpFailed L"\nOperation failed"
396-
#define MSkipEncArc L"\nSkipping the encrypted archive %s"
396+
#define MSkipEncArc L"\nSkipping the encrypted archive %s"

savepos.hpp

-40
This file was deleted.

unicode.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -603,3 +603,4 @@ char* SupportDBCS::charnext(const char *s)
603603
}
604604
#endif
605605

606+

version.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
#define RARVER_BETA 2
44
#define RARVER_DAY 15
55
#define RARVER_MONTH 11
6-
#define RARVER_YEAR 2021
6+
#define RARVER_YEAR 2021

0 commit comments

Comments
 (0)