[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] crypto/sm3-buffer: fix C99 conformance bug
From: |
Paul Eggert |
Subject: |
[PATCH] crypto/sm3-buffer: fix C99 conformance bug |
Date: |
Thu, 30 Dec 2021 11:04:56 -0800 |
* lib/sm3.c (sm3_process_block): Call varargs macro with enough
arguments. Problem found by IBM XL/C 12.1.0.0 for AIX.
---
ChangeLog | 6 ++++++
lib/sm3.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b5f7f8eb2..2271e5c70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-12-30 Paul Eggert <eggert@cs.ucla.edu>
+
+ crypto/sm3-buffer: fix C99 conformance bug
+ * lib/sm3.c (sm3_process_block): Call varargs macro with enough
+ arguments. Problem found by IBM XL/C 12.1.0.0 for AIX.
+
2021-12-30 Bruno Haible <bruno@clisp.org>
Update to Unicode 11.0.0.
diff --git a/lib/sm3.c b/lib/sm3.c
index 0f3b83e7c..735a316fd 100644
--- a/lib/sm3.c
+++ b/lib/sm3.c
@@ -323,8 +323,8 @@ sm3_process_block (const void *buffer, size_t len, struct
sm3_ctx *ctx)
j = -1;
dbg_printf (" j A B C D E "
- " F G H\n");
- dbg_printf (" %08x %08x %08x %08x %08x %08x %08x %08x\n",
+ " F G H\n"
+ " %08x %08x %08x %08x %08x %08x %08x %08x\n",
a, b, c, d, e, f, g, h);
R1( a, b, c, d, e, f, g, h, T( 0), W1( 0), W1( 4) );
--
2.33.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] crypto/sm3-buffer: fix C99 conformance bug,
Paul Eggert <=