u-boot/board/amlogic/vim3
Matthias Schiffer 615828721a Revert "lib: string: Fix strlcpy return value", fix callers
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 d3358ecc54 and adds
related fixes.

Fixes: d3358ecc54 ("lib: string: Fix strlcpy return value")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
2023-08-08 17:05:43 -04:00
..
khadas-mcu.h board: amlogic: vim3: add support for dynamic PCIe enable 2020-10-05 17:59:45 +02:00
MAINTAINERS MAINTAINERS: Update email of Neil Armstrong 2022-08-20 16:17:50 -04:00
Makefile board: amlogic: add a vim3 specific board support 2020-10-05 17:59:45 +02:00
vim3.c Revert "lib: string: Fix strlcpy return value", fix callers 2023-08-08 17:05:43 -04:00