From: JohnnySavages Date: Fri, 19 Dec 2025 03:43:41 +0000 (-0500) Subject: Remove unnecessary post-increment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c53d7842726d0103696e03d79abd76539c65b101;p=thirdparty%2Fopenssl.git Remove unnecessary post-increment Found by Linux Verification Center (linuxtesting.org) with SVACE. CLA:trivial Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Nikola Pajkovsky MergeDate: Thu Jan 22 10:10:51 2026 (Merged from https://github.com/openssl/openssl/pull/29456) --- diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index ec6fa032842..1f688503d3a 100644 --- a/crypto/evp/encode.c +++ b/crypto/evp/encode.c @@ -684,16 +684,16 @@ static int evp_decodeblock_int(EVP_ENCODE_CTX *ctx, unsigned char *t, switch (eof) { case 2: - *(t++) = (unsigned char)(l >> 16L) & 0xff; + *t = (unsigned char)(l >> 16L) & 0xff; break; case 1: *(t++) = (unsigned char)(l >> 16L) & 0xff; - *(t++) = (unsigned char)(l >> 8L) & 0xff; + *t = (unsigned char)(l >> 8L) & 0xff; break; case 0: *(t++) = (unsigned char)(l >> 16L) & 0xff; *(t++) = (unsigned char)(l >> 8L) & 0xff; - *(t++) = (unsigned char)(l) & 0xff; + *t = (unsigned char)(l) & 0xff; break; } ret += 3 - eof;