From dd6f8ed864800997a4945165692f38f55982ae4b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 30 Dec 2021 11:02:40 -0800 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/sm3.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b5f7f8eb2f..2271e5c703 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2021-12-30 Paul Eggert + + 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 Update to Unicode 11.0.0. diff --git a/lib/sm3.c b/lib/sm3.c index 0f3b83e7cc..735a316fd8 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.39.5