diff -Nur p7zip_9.38.orig/CPP/7zip/Archive/7z/7zUpdate.cpp p7zip_9.38/CPP/7zip/Archive/7z/7zUpdate.cpp --- p7zip_9.38.orig/CPP/7zip/Archive/7z/7zUpdate.cpp 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/Archive/7z/7zUpdate.cpp 2015-02-11 01:04:25.880212590 -0200 @@ -186,7 +186,7 @@ } static const char *g_Exts = - " lzma 7z ace arc arj bz bz2 deb lzo lzx gz pak rpm sit tgz tbz tbz2 tgz cab ha lha lzh rar zoo" + " lzma 7z ace arc arj bz bz2 deb lzo lzx gz pak rpm sit tgz tbz tbz2 tgz cab ha lha lzh zoo" " zip jar ear war msi" " 3gp avi mov mpeg mpg mpe wmv" " aac ape fla flac la mp3 m4a mp4 ofr ogg pac ra rm rka shn swa tta wv wma wav" diff -Nur p7zip_9.38.orig/CPP/7zip/Bundles/Format7zFree/makefile.depend p7zip_9.38/CPP/7zip/Bundles/Format7zFree/makefile.depend --- p7zip_9.38.orig/CPP/7zip/Bundles/Format7zFree/makefile.depend 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/Bundles/Format7zFree/makefile.depend 2015-02-11 01:27:26.540889138 -0200 @@ -2926,136 +2926,6 @@ ../../../../CPP/7zip/Archive/../Common/../Archive/../../Common/MyTypes.h \ ../../../../CPP/7zip/Archive/../Common/StreamUtils.h \ ../../../../CPP/7zip/Archive/../Common/../IStream.h -RarHandler.o: ../../../../CPP/7zip/Archive/Rar/RarHandler.cpp \ - ../../../myWindows/StdAfx.h ../../../myWindows/config.h \ - ../../../Common/Common.h ../../../Common/../../C/Compiler.h \ - ../../../Common/MyWindows.h ../../../Common/MyGuidDef.h \ - ../../../Common/MyTypes.h ../../../Common/../../C/7zTypes.h \ - ../../../Common/NewHandler.h ../../../Common/MyWindows.h \ - ../../../Common/MyTypes.h ../../../include_windows/windows.h \ - ../../../include_windows/basetyps.h ../../../include_windows/tchar.h \ - ../../../../CPP/7zip/Archive/Rar/../../../../C/CpuArch.h \ - ../../../../CPP/7zip/Archive/Rar/../../../../C/7zTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/ComTry.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/MyWindows.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/IntToString.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/UTFConvert.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/MyString.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/MyVector.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Windows/PropVariantUtils.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Windows/../Common/MyString.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Windows/PropVariant.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Windows/../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Windows/../Common/MyWindows.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Windows/TimeUtils.h \ - ../../../../CPP/7zip/Archive/Rar/../../IPassword.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/MyUnknown.h \ - ../../../../CPP/7zip/Archive/Rar/../../IDecl.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/CreateCoder.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyCom.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyWindows.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/NewHandler.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyString.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../ICoder.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../IStream.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyUnknown.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../IDecl.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/MethodId.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/FilterCoder.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../IPassword.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/LimitedStreams.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyBuffer.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/Defs.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../../Common/MyVector.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../IStream.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/MethodId.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/ProgressUtils.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../IProgress.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/RegisterArc.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../Archive/IArchive.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../Archive/../IProgress.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../Archive/../IStream.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../Archive/../PropID.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/../Archive/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../Common/StreamUtils.h \ - ../../../../CPP/7zip/Archive/Rar/../../Compress/CopyCoder.h \ - ../../../../CPP/7zip/Archive/Rar/../../Compress/../../Common/MyCom.h \ - ../../../../CPP/7zip/Archive/Rar/../../Compress/../ICoder.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/Rar20Crypto.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/../../Common/MyCom.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/../ICoder.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/../IPassword.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/RarAes.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/../../../C/Aes.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/../../../C/7zTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/../../Common/MyBuffer.h \ - ../../../../CPP/7zip/Archive/Rar/../../Crypto/MyAes.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/FindSignature.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/../../IStream.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/ItemNameUtils.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/../../../Common/MyString.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/OutStreamWithCRC.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/../../../../C/7zCrc.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/../../../../C/7zTypes.h \ - ../../../../CPP/7zip/Archive/Rar/../Common/../../../Common/MyCom.h \ - ../../../../CPP/7zip/Archive/Rar/RarHandler.h \ - ../../../../CPP/7zip/Archive/Rar/../IArchive.h \ - ../../../../CPP/7zip/Archive/Rar/RarItem.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/StringConvert.h \ - ../../../../CPP/7zip/Archive/Rar/RarHeader.h \ - ../../../../CPP/7zip/Archive/Rar/../../../Common/MyTypes.h -RpmHandler.o: ../../../../CPP/7zip/Archive/RpmHandler.cpp \ - ../../../myWindows/StdAfx.h ../../../myWindows/config.h \ - ../../../Common/Common.h ../../../Common/../../C/Compiler.h \ - ../../../Common/MyWindows.h ../../../Common/MyGuidDef.h \ - ../../../Common/MyTypes.h ../../../Common/../../C/7zTypes.h \ - ../../../Common/NewHandler.h ../../../Common/MyWindows.h \ - ../../../Common/MyTypes.h ../../../include_windows/windows.h \ - ../../../include_windows/basetyps.h ../../../include_windows/tchar.h \ - ../../../../CPP/7zip/Archive/../../../C/CpuArch.h \ - ../../../../CPP/7zip/Archive/../../../C/7zTypes.h \ - ../../../../CPP/7zip/Archive/../../Common/ComTry.h \ - ../../../../CPP/7zip/Archive/../../Common/MyWindows.h \ - ../../../../CPP/7zip/Archive/../../Common/IntToString.h \ - ../../../../CPP/7zip/Archive/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/../../Common/MyString.h \ - ../../../../CPP/7zip/Archive/../../Common/MyVector.h \ - ../../../../CPP/7zip/Archive/../../Common/StringConvert.h \ - ../../../../CPP/7zip/Archive/../../Common/MyString.h \ - ../../../../CPP/7zip/Archive/../../Common/UTFConvert.h \ - ../../../../CPP/7zip/Archive/../../Windows/PropVariant.h \ - ../../../../CPP/7zip/Archive/../../Windows/../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/../../Windows/../Common/MyWindows.h \ - ../../../../CPP/7zip/Archive/../../Windows/TimeUtils.h \ - ../../../../CPP/7zip/Archive/../Common/LimitedStreams.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/MyBuffer.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/Defs.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/MyCom.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/MyWindows.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/NewHandler.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/MyVector.h \ - ../../../../CPP/7zip/Archive/../Common/../IStream.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/../Common/../../Common/MyUnknown.h \ - ../../../../CPP/7zip/Archive/../Common/../IDecl.h \ - ../../../../CPP/7zip/Archive/../Common/ProgressUtils.h \ - ../../../../CPP/7zip/Archive/../Common/../ICoder.h \ - ../../../../CPP/7zip/Archive/../Common/../IStream.h \ - ../../../../CPP/7zip/Archive/../Common/../IProgress.h \ - ../../../../CPP/7zip/Archive/../Common/RegisterArc.h \ - ../../../../CPP/7zip/Archive/../Common/../Archive/IArchive.h \ - ../../../../CPP/7zip/Archive/../Common/../Archive/../IProgress.h \ - ../../../../CPP/7zip/Archive/../Common/../Archive/../IStream.h \ - ../../../../CPP/7zip/Archive/../Common/../Archive/../PropID.h \ - ../../../../CPP/7zip/Archive/../Common/../Archive/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Archive/../Common/StreamUtils.h \ - ../../../../CPP/7zip/Archive/../Compress/CopyCoder.h \ - ../../../../CPP/7zip/Archive/../Compress/../../Common/MyCom.h \ - ../../../../CPP/7zip/Archive/../Compress/../ICoder.h SplitHandler.o: ../../../../CPP/7zip/Archive/SplitHandler.cpp \ ../../../myWindows/StdAfx.h ../../../myWindows/config.h \ ../../../Common/Common.h ../../../Common/../../C/Compiler.h \ @@ -6345,53 +6215,6 @@ ../../../../CPP/7zip/Crypto/RandGen.h \ ../../../../CPP/7zip/Crypto/../../../C/Sha256.h \ ../../../../CPP/7zip/Crypto/../../../C/7zTypes.h -Rar20Crypto.o: ../../../../CPP/7zip/Crypto/Rar20Crypto.cpp \ - ../../../myWindows/StdAfx.h ../../../myWindows/config.h \ - ../../../Common/Common.h ../../../Common/../../C/Compiler.h \ - ../../../Common/MyWindows.h ../../../Common/MyGuidDef.h \ - ../../../Common/MyTypes.h ../../../Common/../../C/7zTypes.h \ - ../../../Common/NewHandler.h ../../../Common/MyWindows.h \ - ../../../Common/MyTypes.h ../../../include_windows/windows.h \ - ../../../include_windows/basetyps.h ../../../include_windows/tchar.h \ - ../../../../CPP/7zip/Crypto/../../../C/7zCrc.h \ - ../../../../CPP/7zip/Crypto/../../../C/7zTypes.h \ - ../../../../CPP/7zip/Crypto/../../../C/CpuArch.h \ - ../../../../CPP/7zip/Crypto/../../../C/RotateDefs.h \ - ../../../../CPP/7zip/Crypto/Rar20Crypto.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyCom.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyWindows.h \ - ../../../../CPP/7zip/Crypto/../../Common/NewHandler.h \ - ../../../../CPP/7zip/Crypto/../ICoder.h \ - ../../../../CPP/7zip/Crypto/../IStream.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyUnknown.h \ - ../../../../CPP/7zip/Crypto/../IDecl.h \ - ../../../../CPP/7zip/Crypto/../IPassword.h -RarAes.o: ../../../../CPP/7zip/Crypto/RarAes.cpp \ - ../../../myWindows/StdAfx.h ../../../myWindows/config.h \ - ../../../Common/Common.h ../../../Common/../../C/Compiler.h \ - ../../../Common/MyWindows.h ../../../Common/MyGuidDef.h \ - ../../../Common/MyTypes.h ../../../Common/../../C/7zTypes.h \ - ../../../Common/NewHandler.h ../../../Common/MyWindows.h \ - ../../../Common/MyTypes.h ../../../include_windows/windows.h \ - ../../../include_windows/basetyps.h ../../../include_windows/tchar.h \ - ../../../../CPP/7zip/Crypto/RarAes.h \ - ../../../../CPP/7zip/Crypto/../../../C/Aes.h \ - ../../../../CPP/7zip/Crypto/../../../C/7zTypes.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyBuffer.h \ - ../../../../CPP/7zip/Crypto/../../Common/Defs.h \ - ../../../../CPP/7zip/Crypto/../IPassword.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyTypes.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyUnknown.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyWindows.h \ - ../../../../CPP/7zip/Crypto/../IDecl.h \ - ../../../../CPP/7zip/Crypto/MyAes.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyCom.h \ - ../../../../CPP/7zip/Crypto/../../Common/NewHandler.h \ - ../../../../CPP/7zip/Crypto/../ICoder.h \ - ../../../../CPP/7zip/Crypto/../IStream.h \ - ../../../../CPP/7zip/Crypto/Sha1.h \ - ../../../../CPP/7zip/Crypto/../../Common/MyTypes.h Sha1.o: ../../../../CPP/7zip/Crypto/Sha1.cpp ../../../myWindows/StdAfx.h \ ../../../myWindows/config.h ../../../Common/Common.h \ ../../../Common/../../C/Compiler.h ../../../Common/MyWindows.h \ diff -Nur p7zip_9.38.orig/CPP/7zip/Bundles/Format7zFree/makefile.list p7zip_9.38/CPP/7zip/Bundles/Format7zFree/makefile.list --- p7zip_9.38.orig/CPP/7zip/Bundles/Format7zFree/makefile.list 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/Bundles/Format7zFree/makefile.list 2015-02-11 00:30:12.429937156 -0200 @@ -71,7 +71,6 @@ ../../../../CPP/7zip/Archive/NtfsHandler.cpp \ ../../../../CPP/7zip/Archive/PeHandler.cpp \ ../../../../CPP/7zip/Archive/PpmdHandler.cpp \ - ../../../../CPP/7zip/Archive/Rar/RarHandler.cpp \ ../../../../CPP/7zip/Archive/RpmHandler.cpp \ ../../../../CPP/7zip/Archive/SplitHandler.cpp \ ../../../../CPP/7zip/Archive/SquashfsHandler.cpp \ @@ -174,8 +173,6 @@ ../../../../CPP/7zip/Crypto/MyAesReg.cpp \ ../../../../CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp \ ../../../../CPP/7zip/Crypto/RandGen.cpp \ - ../../../../CPP/7zip/Crypto/Rar20Crypto.cpp \ - ../../../../CPP/7zip/Crypto/RarAes.cpp \ ../../../../CPP/7zip/Crypto/Sha1.cpp \ ../../../../CPP/7zip/Crypto/Sha1Reg.cpp \ ../../../../CPP/7zip/Crypto/WzAes.cpp \ @@ -453,8 +450,6 @@ $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Archive/PeHandler.cpp PpmdHandler.o : ../../../../CPP/7zip/Archive/PpmdHandler.cpp $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Archive/PpmdHandler.cpp -RarHandler.o : ../../../../CPP/7zip/Archive/Rar/RarHandler.cpp - $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Archive/Rar/RarHandler.cpp RpmHandler.o : ../../../../CPP/7zip/Archive/RpmHandler.cpp $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Archive/RpmHandler.cpp SplitHandler.o : ../../../../CPP/7zip/Archive/SplitHandler.cpp @@ -659,10 +654,6 @@ $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp RandGen.o : ../../../../CPP/7zip/Crypto/RandGen.cpp $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Crypto/RandGen.cpp -Rar20Crypto.o : ../../../../CPP/7zip/Crypto/Rar20Crypto.cpp - $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Crypto/Rar20Crypto.cpp -RarAes.o : ../../../../CPP/7zip/Crypto/RarAes.cpp - $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Crypto/RarAes.cpp Sha1.o : ../../../../CPP/7zip/Crypto/Sha1.cpp $(CXX) $(CXXFLAGS) ../../../../CPP/7zip/Crypto/Sha1.cpp Sha1Reg.o : ../../../../CPP/7zip/Crypto/Sha1Reg.cpp @@ -828,7 +819,6 @@ NtfsHandler.o \ PeHandler.o \ PpmdHandler.o \ - RarHandler.o \ RpmHandler.o \ SplitHandler.o \ SquashfsHandler.o \ @@ -931,8 +921,6 @@ MyAesReg.o \ Pbkdf2HmacSha1.o \ RandGen.o \ - Rar20Crypto.o \ - RarAes.o \ Sha1.o \ Sha1Reg.o \ WzAes.o \ diff -Nur p7zip_9.38.orig/CPP/7zip/CMAKE/Format7zFree/CMakeLists.txt p7zip_9.38/CPP/7zip/CMAKE/Format7zFree/CMakeLists.txt --- p7zip_9.38.orig/CPP/7zip/CMAKE/Format7zFree/CMakeLists.txt 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/CMAKE/Format7zFree/CMakeLists.txt 2015-02-11 00:46:31.224729754 -0200 @@ -120,7 +120,6 @@ "../../../../CPP/7zip/Archive/NtfsHandler.cpp" "../../../../CPP/7zip/Archive/PeHandler.cpp" "../../../../CPP/7zip/Archive/PpmdHandler.cpp" - "../../../../CPP/7zip/Archive/Rar/RarHandler.cpp" "../../../../CPP/7zip/Archive/RpmHandler.cpp" "../../../../CPP/7zip/Archive/SplitHandler.cpp" "../../../../CPP/7zip/Archive/SquashfsHandler.cpp" @@ -223,8 +222,6 @@ "../../../../CPP/7zip/Crypto/MyAesReg.cpp" "../../../../CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp" "../../../../CPP/7zip/Crypto/RandGen.cpp" - "../../../../CPP/7zip/Crypto/Rar20Crypto.cpp" - "../../../../CPP/7zip/Crypto/RarAes.cpp" "../../../../CPP/7zip/Crypto/Sha1.cpp" "../../../../CPP/7zip/Crypto/Sha1Reg.cpp" "../../../../CPP/7zip/Crypto/WzAes.cpp" diff -Nur p7zip_9.38.orig/CPP/7zip/Crypto/Sha1.cpp p7zip_9.38/CPP/7zip/Crypto/Sha1.cpp --- p7zip_9.38.orig/CPP/7zip/Crypto/Sha1.cpp 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/Crypto/Sha1.cpp 2015-02-11 00:45:40.547653068 -0200 @@ -130,35 +130,6 @@ _count2 = curBufferPos; } -void CContext::UpdateRar(Byte *data, size_t size, bool rar350Mode) -{ - bool returnRes = false; - unsigned curBufferPos = _count2; - while (size--) - { - unsigned pos = (curBufferPos & 3); - if (pos == 0) - _buffer[curBufferPos >> 2] = 0; - _buffer[curBufferPos >> 2] |= ((UInt32)*data++) << (8 * (3 - pos)); - if (++curBufferPos == kBlockSize) - { - curBufferPos = 0; - CContextBase::UpdateBlock(_buffer, returnRes); - if (returnRes) - for (unsigned i = 0; i < kBlockSizeInWords; i++) - { - UInt32 d = _buffer[i]; - data[(int)i * 4 + 0 - (int)kBlockSize] = (Byte)(d); - data[(int)i * 4 + 1 - (int)kBlockSize] = (Byte)(d >> 8); - data[(int)i * 4 + 2 - (int)kBlockSize] = (Byte)(d >> 16); - data[(int)i * 4 + 3 - (int)kBlockSize] = (Byte)(d >> 24); - } - returnRes = rar350Mode; - } - } - _count2 = curBufferPos; -} - void CContext::Final(Byte *digest) { const UInt64 lenInBits = (_count << 9) + ((UInt64)_count2 << 3); diff -Nur p7zip_9.38.orig/CPP/7zip/Crypto/Sha1.h p7zip_9.38/CPP/7zip/Crypto/Sha1.h --- p7zip_9.38.orig/CPP/7zip/Crypto/Sha1.h 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/Crypto/Sha1.h 2015-02-11 01:03:20.456339087 -0200 @@ -9,10 +9,6 @@ #include "../../Common/MyTypes.h" -// Sha1 implementation in RAR before version 3.60 has bug: -// it changes data bytes in some cases. -// So this class supports both versions: normal_SHA and rar3Mode - namespace NCrypto { namespace NSha1 { @@ -53,7 +49,6 @@ { public: void Update(const Byte *data, size_t size); - void UpdateRar(Byte *data, size_t size, bool rar350Mode); void Final(Byte *digest); }; diff -Nur p7zip_9.38.orig/CPP/7zip/Guid.txt p7zip_9.38/CPP/7zip/Guid.txt --- p7zip_9.38.orig/CPP/7zip/Guid.txt 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/Guid.txt 2015-02-11 00:44:03.300174458 -0200 @@ -132,7 +132,6 @@ 01 Zip 02 BZip2 - 03 Rar 04 Arj 05 Z 06 Lzh diff -Nur p7zip_9.38.orig/CPP/7zip/UI/Client7z/Client7z.cpp p7zip_9.38/CPP/7zip/UI/Client7z/Client7z.cpp --- p7zip_9.38.orig/CPP/7zip/UI/Client7z/Client7z.cpp 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/UI/Client7z/Client7z.cpp 2015-02-11 01:06:18.167807974 -0200 @@ -30,7 +30,7 @@ #endif // Tou can find the list of all GUIDs in Guid.txt file. -// use another CLSIDs, if you want to support other formats (zip, rar, ...). +// use another CLSIDs, if you want to support other formats (zip, ...). // {23170F69-40C1-278A-1000-000110070000} DEFINE_GUID(CLSID_CFormat7z, 0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x07, 0x00, 0x00); diff -Nur p7zip_9.38.orig/CPP/7zip/UI/Common/LoadCodecs.h p7zip_9.38/CPP/7zip/UI/Common/LoadCodecs.h --- p7zip_9.38.orig/CPP/7zip/UI/Common/LoadCodecs.h 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/UI/Common/LoadCodecs.h 2015-02-11 00:43:34.319931310 -0200 @@ -110,7 +110,6 @@ void AddExts(const UString &ext, const UString &addExt); bool IsSplit() const { return StringsAreEqualNoCase_Ascii(Name, "Split"); } - // bool IsRar() const { return StringsAreEqualNoCase_Ascii(Name, "Rar"); } CArcInfoEx(): Flags(0), diff -Nur p7zip_9.38.orig/CPP/7zip/UI/Common/OpenArchive.cpp p7zip_9.38/CPP/7zip/UI/Common/OpenArchive.cpp --- p7zip_9.38.orig/CPP/7zip/UI/Common/OpenArchive.cpp 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/UI/Common/OpenArchive.cpp 2015-02-11 00:36:30.699723469 -0200 @@ -856,7 +856,6 @@ { "7z" , "xz" - , "rar" , "bzip2" , "gzip" , "cab" @@ -1443,29 +1442,6 @@ { // signature search was here } - else if (extension == L"000" || extension == L"001") - { - int i = FindFormatForArchiveType(op.codecs, orderIndices, "rar"); - if (i >= 0) - { - const size_t kBufSize = (1 << 10); - byteBuffer.Alloc(kBufSize); - size_t processedSize = kBufSize; - RINOK(ReadStream(op.stream, byteBuffer, &processedSize)); - if (processedSize >= 16) - { - const Byte *buf = byteBuffer; - const Byte kRarHeader[] = { 0x52 , 0x61, 0x72, 0x21, 0x1a, 0x07, 0x00 }; - if (TestSignature(buf, kRarHeader, 7) && buf[9] == 0x73 && (buf[10] & 1) != 0) - { - orderIndices2.Add(orderIndices[i]); - orderIndices[i] = -1; - if (i >= (int)numFinded) - numFinded++; - } - } - } - } else { const size_t kBufSize = (1 << 10); diff -Nur p7zip_9.38.orig/CPP/7zip/UI/FileManager/FM_rc.cpp p7zip_9.38/CPP/7zip/UI/FileManager/FM_rc.cpp --- p7zip_9.38.orig/CPP/7zip/UI/FileManager/FM_rc.cpp 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/UI/FileManager/FM_rc.cpp 2015-02-11 00:19:25.381597838 -0200 @@ -815,8 +815,6 @@ ///////////////////////////////////////////////////// -#include "res/ParentFolder.h" - SevenZipPanel::SevenZipPanel(MyFrame *frame, wxWindow *parent,int id,int panelIndex) : wxPanel(parent,id) , m_frame(frame), _wList(0) { @@ -834,7 +832,7 @@ int sizes[] = {150, 250, 350, -1}; wxArrayString pathArray; wxBoxSizer *pPathSizer = new wxBoxSizer(wxHORIZONTAL); - m_pBmpButtonParentFolder = new wxBitmapButton(this, kParentFolderID, wxGetBitmapFromMemory(PARENT_FOLDER), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW); + m_pBmpButtonParentFolder = new wxBitmapButton(this, kParentFolderID, wxArtProvider::GetBitmap(wxART_GO_DIR_UP, wxART_TOOLBAR, wxDefaultSize), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW); m_pComboBoxPath = new wxComboBox(this, _comboBoxID, wxEmptyString, wxDefaultPosition, wxSize(300,-1), pathArray, wxCB_DROPDOWN | wxCB_SORT ); pPathSizer->Add(m_pBmpButtonParentFolder, 0, wxALL|wxEXPAND, 0); pPathSizer->Add(m_pComboBoxPath, 1, wxALL|wxEXPAND, 5); diff -Nur p7zip_9.38.orig/CPP/7zip/UI/FileManager/makefile.depend p7zip_9.38/CPP/7zip/UI/FileManager/makefile.depend --- p7zip_9.38.orig/CPP/7zip/UI/FileManager/makefile.depend 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/7zip/UI/FileManager/makefile.depend 2015-02-11 00:23:18.466708442 -0200 @@ -2643,8 +2643,7 @@ ../../../../CPP/7zip/UI/FileManager/res/Info2PNG.h \ /usr/include/wx-3.0/wx/mstream.h /usr/include/wx-3.0/wx/listctrl.h \ /usr/include/wx-3.0/wx/listbase.h \ - /usr/include/wx-3.0/wx/generic/listctrl.h \ - ../../../../CPP/7zip/UI/FileManager/res/ParentFolder.h + /usr/include/wx-3.0/wx/generic/listctrl.h FSDrives.o: ../../../../CPP/7zip/UI/FileManager/FSDrives.cpp \ ../../../myWindows/StdAfx.h ../../../myWindows/config.h \ ../../../Common/Common.h ../../../Common/../../C/Compiler.h \ diff -Nur p7zip_9.38.orig/CPP/ANDROID/Format7zFree/jni/Android.mk p7zip_9.38/CPP/ANDROID/Format7zFree/jni/Android.mk --- p7zip_9.38.orig/CPP/ANDROID/Format7zFree/jni/Android.mk 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/CPP/ANDROID/Format7zFree/jni/Android.mk 2015-02-11 00:54:16.375224803 -0200 @@ -88,7 +88,6 @@ ../../../../CPP/7zip/Archive/NtfsHandler.cpp \ ../../../../CPP/7zip/Archive/PeHandler.cpp \ ../../../../CPP/7zip/Archive/PpmdHandler.cpp \ - ../../../../CPP/7zip/Archive/Rar/RarHandler.cpp \ ../../../../CPP/7zip/Archive/RpmHandler.cpp \ ../../../../CPP/7zip/Archive/SplitHandler.cpp \ ../../../../CPP/7zip/Archive/SquashfsHandler.cpp \ @@ -191,8 +190,6 @@ ../../../../CPP/7zip/Crypto/MyAesReg.cpp \ ../../../../CPP/7zip/Crypto/Pbkdf2HmacSha1.cpp \ ../../../../CPP/7zip/Crypto/RandGen.cpp \ - ../../../../CPP/7zip/Crypto/Rar20Crypto.cpp \ - ../../../../CPP/7zip/Crypto/RarAes.cpp \ ../../../../CPP/7zip/Crypto/Sha1.cpp \ ../../../../CPP/7zip/Crypto/Sha1Reg.cpp \ ../../../../CPP/7zip/Crypto/WzAes.cpp \ diff -Nur p7zip_9.38.orig/ChangeLog p7zip_9.38/ChangeLog --- p7zip_9.38.orig/ChangeLog 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/ChangeLog 2015-02-11 01:08:43.782348145 -0200 @@ -9,7 +9,6 @@ - From Windows version of 7-zip - bug#138 If you extract the password with # program crashes - 7z now supports long password in RAR 3 and 4. @@ -40,12 +39,6 @@ - #3283518 : Asm/x{32,64}/7zCrcT8U.asm introduces executable stack -Version 9.20.1 -============== - - - #3211479 "p7zip 9.20 - "unsupported method" with RAR files - " fixed - "install.sh" installs again "bin/Codecs/Rar29.so" - Version 9.20 ============ @@ -118,8 +111,6 @@ - Some bugs were fixed. - - #2863580 "Crash in Rar decoder on a corrupted file" fixed - - #2860898 "Dereferencing a zero pointer in cab handler" fixed - #2860679 "Division by zero in cab decoder" fixed @@ -248,7 +239,7 @@ - It's allowed to use -t switch for "list" and "extract" commands. - Some bugs were fixed. - - Bug : wrong timestamp for files extracted from .zip or .rar archives + - Bug : wrong timestamp for files extracted from .zip archives Version 4.58 @@ -261,8 +252,6 @@ 2) -mcu switch: 7-Zip uses UTF-8, if there are non-ASCII symbols. 3) -mcl switch: 7-Zip uses local code page. - Now it's possible to store file creation time in 7z and ZIP archives (-mtc switch). - - 7-Zip now can unpack multivolume RAR archives created with - "old style volume names" scheme and names *.001, *.002, ... - Now it's possible to use -mSW- and -mSW+ switches instead of -mSW=off and -mSW=on - Some bugs were fixed. @@ -598,8 +587,6 @@ - patch #1465026 - Patch for install.sh for packagers - - DosDateTimeToFileTime fixed (rar format) - - contrib/VirtualFileSystemForMidnightCommander/u7z updated (thank sgh_punk) @@ -716,8 +703,6 @@ - Some bugs were fixed - DOCS/MANUAL/exit_codes.htm added - - new plugin for 7z : RAR format support (extracting only) - - better dependencies in makefile Version 4.23 @@ -905,9 +890,6 @@ - new port of 7za from the source of 7za 4.10Beta for Windows => p7zip now work on big endian CPU. - - 7z for Unix is not maintain anymore (because as the source of unrar plugin for 7z - is not available, 7z is unless on Unix). - Version 0.91 ============ - add support for FreeBSD 5.2.1 diff -Nur p7zip_9.38.orig/DOC/License.txt p7zip_9.38/DOC/License.txt --- p7zip_9.38.orig/DOC/License.txt 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/DOC/License.txt 2015-02-11 00:56:11.542823857 -0200 @@ -5,14 +5,7 @@ 7-Zip Copyright (C) 1999-2015 Igor Pavlov. - Licenses for files are: - - 1) CPP/7zip/Compress/Rar* files: GNU LGPL + unRAR restriction - 2) All other files: GNU LGPL - - The GNU LGPL + unRAR restriction means that you must follow both - GNU LGPL rules and unRAR restriction rules. - + Licenses for files are GNU LGPL. GNU LGPL information -------------------- @@ -32,21 +25,5 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - unRAR restriction - ----------------- - - The decompression engine for RAR archives was developed using source - code of unRAR program. - All copyrights to original unRAR code are owned by Alexander Roshal. - - The license for original unRAR code has the following restriction: - - The unRAR sources cannot be used to re-create the RAR compression algorithm, - which is proprietary. Distribution of modified unRAR sources in separate form - or as a part of other software is permitted, provided that it is clearly - stated in the documentation and source comments that the code may - not be used to develop a RAR (WinRAR) compatible archiver. - - -- Igor Pavlov diff -Nur p7zip_9.38.orig/DOC/MANUAL/switches/update.htm p7zip_9.38/DOC/MANUAL/switches/update.htm --- p7zip_9.38.orig/DOC/MANUAL/switches/update.htm 1989-12-31 22:00:00.000000000 -0200 +++ p7zip_9.38/DOC/MANUAL/switches/update.htm 2015-02-11 01:06:42.614677076 -0200 @@ -139,7 +139,7 @@