john/s390x-upstream.patch
Torsten Gruner 9c82ab456c Accepting request 925872 from home:AdaLovelace:branches:openSUSE:Factory:zSystems
- Upstream patch for Big Endians in s390x-upstream.patch
- Include johnswap.h in opencl_7z_fmt_plug.c with s390x.patch

OBS-URL: https://build.opensuse.org/request/show/925872
OBS-URL: https://build.opensuse.org/package/show/security/john?expand=0&rev=74
2021-10-18 19:39:37 +00:00

26 lines
882 B
Diff

From e90800f8000b502fa8d2d687df8a405749351523 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Claudio=20Andr=C3=A9?= <claudioandre.br@gmail.com>
Date: Tue, 12 Oct 2021 11:41:12 -0300
Subject: [PATCH] S390
---
src/opencl_pbkdf2_hmac_sha1_fmt_plug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c b/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c
index 23987a934..7eb3de333 100644
--- a/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c
+++ b/src/opencl_pbkdf2_hmac_sha1_fmt_plug.c
@@ -226,7 +226,7 @@ static void *get_binary(char *ciphertext)
unsigned char *out = pbkdf2_hmac_sha1_binary(ciphertext);
#if !ARCH_LITTLE_ENDIAN
char *p = strrchr(ciphertext, '$') + 1;
- int len = strlen(p) / 2;
+ int i, len = strlen(p) / 2;
for (i = 0; i < len / sizeof(uint32_t); ++i) {
((uint32_t*)out)[i] = JOHNSWAP(((uint32_t*)out)[i]);
}
--
2.25.1