[openssh-commits] [openssh] 04/05: upstream: Fix compile error on 32bit platforms.
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat May 24 14:03:50 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit f5cd14e81fa29b4924959cb2e1f9c206aae2d502
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Sat May 24 02:33:33 2025 +0000
upstream: Fix compile error on 32bit platforms.
Spotted by & ok tb@
OpenBSD-Commit-ID: cbcf518247886f3c7518fc54cb3bd911ffc69db7
---
umac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/umac.c b/umac.c
index 5bf2e43a6..94c5e817c 100644
--- a/umac.c
+++ b/umac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umac.c,v 1.25 2025/05/23 11:54:50 dtucker Exp $ */
+/* $OpenBSD: umac.c,v 1.26 2025/05/24 02:33:33 dtucker Exp $ */
/* -----------------------------------------------------------------------
*
* umac.c -- C Implementation UMAC Message Authentication
@@ -1092,7 +1092,7 @@ static int uhash_update(uhash_ctx_t ctx, const u_char *input, long len)
}
/* pass remaining < L1_KEY_LEN bytes of input data to NH */
- if (len > 0 && len <= UINT32_MAX) {
+ if (len > 0 && (unsigned long)len <= UINT32_MAX) {
nh_update(&ctx->hash, (const UINT8 *)input, len);
ctx->msg_len += len;
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list