Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/external/bsd/bind/dist/lib/isc Apply patch, requested by ...
details: https://anonhg.NetBSD.org/src/rev/b95edcd4103e
branches: netbsd-8
changeset: 932349:b95edcd4103e
user: martin <martin%NetBSD.org@localhost>
date: Tue May 05 18:51:08 2020 +0000
description:
Apply patch, requested by he in ticket #1545:
Fix bug revealing itself in sha384 checksum computation: one
important statement was overlooked when converting the code to
avoid alignment issues.
diffstat:
external/bsd/bind/dist/lib/isc/sha2.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r aa70503a462f -r b95edcd4103e external/bsd/bind/dist/lib/isc/sha2.c
--- a/external/bsd/bind/dist/lib/isc/sha2.c Thu Apr 30 16:22:10 2020 +0000
+++ b/external/bsd/bind/dist/lib/isc/sha2.c Tue May 05 18:51:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sha2.c,v 1.10.8.1 2017/06/21 18:03:45 snj Exp $ */
+/* $NetBSD: sha2.c,v 1.10.8.2 2020/05/05 18:51:08 martin Exp $ */
/*
* Copyright (C) 2005-2007, 2009, 2011, 2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
@@ -1503,6 +1503,8 @@
*context->buffer = 0x80;
}
/* Store the length of input data (in bits): */
+ memcpy(&context->buffer[ISC_SHA512_SHORT_BLOCK_LENGTH],
+ &context->bitcount[1], sizeof(isc_uint64_t));
memcpy(&context->buffer[ISC_SHA512_SHORT_BLOCK_LENGTH+8],
&context->bitcount[0], sizeof(isc_uint64_t));
Home |
Main Index |
Thread Index |
Old Index