pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/git-base/patches Ooops, missed to add this in pr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/93d64e9df6db
branches: trunk
changeset: 362750:93d64e9df6db
user: martin <martin%pkgsrc.org@localhost>
date: Wed May 24 14:41:35 2017 +0000
description:
Ooops, missed to add this in previous
diffstat:
devel/git-base/patches/patch-sha1dc_sha1.c | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r 21aee1972b4a -r 93d64e9df6db devel/git-base/patches/patch-sha1dc_sha1.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/git-base/patches/patch-sha1dc_sha1.c Wed May 24 14:41:35 2017 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-sha1dc_sha1.c,v 1.1 2017/05/24 14:41:35 martin Exp $
+
+Upstream fix for alignement issues in SHA1DCUpdate,
+see: https://public-inbox.org/git/20170515220939.vkgofpkdtpz7u26v%sigill.intra.peff.net@localhost/T/#u
+
+--- sha1dc/sha1.c.orig 2017-05-24 14:22:01.252256885 +0200
++++ sha1dc/sha1.c 2017-05-24 14:24:53.441321730 +0200
+@@ -20,7 +20,7 @@
+ */
+ #if (defined(__BYTE_ORDER) && (__BYTE_ORDER == __BIG_ENDIAN)) || \
+ (defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __BIG_ENDIAN__)) || \
+- defined(__BIG_ENDIAN__) || defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \
++ defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__) || defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \
+ defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__)
+
+ #define SHA1DC_BIGENDIAN 1
+@@ -1728,7 +1728,8 @@ void SHA1DCUpdate(SHA1_CTX* ctx, const c
+ while (len >= 64)
+ {
+ ctx->total += 64;
+- sha1_process(ctx, (uint32_t*)(buf));
++ memcpy(ctx->buffer, buf, 64);
++ sha1_process(ctx, (uint32_t*)(ctx->buffer));
+ buf += 64;
+ len -= 64;
+ }
Home |
Main Index |
Thread Index |
Old Index