string: Improve fortify with clang
commit5e9696b26540d02639e0d16532e0f3d53c7e5cd0
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 8 Feb 2024 18:46:15 +0000 (8 15:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 27 Feb 2024 13:52:58 +0000 (27 10:52 -0300)
tree2e21d7f7fc0e73d4e2a9c81e6ed1f4e21206549d
parent29951991f5db1001c059f8ed7afa2c359cdc7f44
string: Improve fortify with clang

It improve fortify checks for strcpy, stpcpy, strncpy, stpncpy, strcat,
strncat, strlcpy, and strlcat.  The runtime and compile checks have
similar coverage as with GCC.

Checked on aarch64, armhf, x86_64, and i686.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
string/bits/string_fortified.h