]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/cmp/cmp_genm.c: avoid strcat() in get_genm_itav()
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 19 May 2026 07:18:23 +0000 (09:18 +0200)
committerEugene Syromiatnikov <esyr@openssl.org>
Tue, 26 May 2026 14:54:12 +0000 (16:54 +0200)
commit700e962aa0aee70ff01d26fcfbaefc6439ac82cd
tree364eb184581ab6ecf4d6968d43e8eb1366825aa0
parentbe27d28c61deef2d013eb244cea1b1959ed37a0a
crypto/cmp/cmp_genm.c: avoid strcat() in get_genm_itav()

There is no need to use strcat() there, as it concatenates into a string
that is used in a format string anyway.  Put the literal prefix
into the format string and avoid literal string copying.

Fixes: d477484d33b7 "CMP: add support for genm/genp messages with id-it-caCerts"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Bob Beck <beck@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
MergeDate: Tue May 26 14:54:19 2026
(Merged from https://github.com/openssl/openssl/pull/31230)
crypto/cmp/cmp_genm.c