mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-20 18:23:08 +00:00
615828721a
Both the Linux kernel and libbsd agree that strlcpy() should always return strlen(src) and not include the NUL termination. The incorrect U-Boot implementation makes it impossible to check the return value for truncation, and breaks code written with the usual implementation in mind (for example, fdtdec_add_reserved_memory() was subtly broken). I reviewed all callers of strlcpy() and strlcat() and fixed them according to my understanding of the intended function. This reverts commit |
||
---|---|---|
.. | ||
abuf.c | ||
asn1.c | ||
cmd_ut_lib.c | ||
efi_device_path.c | ||
efi_image_region.c | ||
getopt.c | ||
hexdump.c | ||
Kconfig | ||
kconfig.c | ||
kconfig_spl.c | ||
lmb.c | ||
longjmp.c | ||
Makefile | ||
rsa.c | ||
sscanf.c | ||
string.c | ||
strlcat.c | ||
test_aes.c | ||
test_crc8.c | ||
test_crypt.c | ||
test_errno_str.c | ||
test_print.c |