summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-arch/p7zip/files/p7zip-9.20.1-long_rar_pwd.patch')
-rw-r--r--app-arch/p7zip/files/p7zip-9.20.1-long_rar_pwd.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/app-arch/p7zip/files/p7zip-9.20.1-long_rar_pwd.patch b/app-arch/p7zip/files/p7zip-9.20.1-long_rar_pwd.patch
new file mode 100644
index 000000000000..ea7a90b71d44
--- /dev/null
+++ b/app-arch/p7zip/files/p7zip-9.20.1-long_rar_pwd.patch
@@ -0,0 +1,17 @@
+--- ./CPP/7zip/Crypto/Sha1.cpp 2010-10-20 06:56:08.000000000 +0200
++++ CPP/7zip/Crypto/Sha1.cpp.new 2013-09-15 09:19:51.000000000 +0200
+@@ -148,10 +148,10 @@
+ for (int i = 0; i < kBlockSizeInWords; i++)
+ {
+ UInt32 d = _buffer[i];
+- data[i * 4 + 0 - kBlockSize] = (Byte)(d);
+- data[i * 4 + 1 - kBlockSize] = (Byte)(d >> 8);
+- data[i * 4 + 2 - kBlockSize] = (Byte)(d >> 16);
+- data[i * 4 + 3 - kBlockSize] = (Byte)(d >> 24);
++ 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;
+ }