]> git.ipfire.org Git - thirdparty/grub.git/commit
libtasn1: Replace strcat() with strcpy() in _asn1_str_cat()
authorGary Lin <glin@suse.com>
Fri, 15 Nov 2024 07:34:32 +0000 (15:34 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 28 Nov 2024 20:50:53 +0000 (21:50 +0100)
commit32fdfe60087bb757734d90db37e610c954c75d8b
treef15eab3d5d72825349e4ef385f25e161c77ae598
parentfa498af7b999957da990f5216ff3cee3326dfbdf
libtasn1: Replace strcat() with strcpy() in _asn1_str_cat()

strcat() is not available in GRUB. This commit replaces strcat() with
strcpy() in _asn1_str_cat() as the preparation to replace other strcat()
with the bounds-checking _asn1_str_cat().

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
grub-core/lib/libtasn1-patches/0002-libtasn1-replace-strcat-with-strcpy-in-_asn1_str_cat.patch [new file with mode: 0644]