[PATCH] tiny-printf: emit \0 as %c
Tom Rini
trini at konsulko.com
Tue Mar 4 05:41:47 CET 2025
On Thu, 20 Feb 2025 13:49:07 +0100, A. Sverdlin wrote:
> The current code has a problematic corner case with formar "%c" and
> 0 as parameter. The proper zero byte is being emitted into digit buffer
> but the final copy into outstr expects null-terminated string and doesn't
> copy the required \0 byte. This has lead to malformed TFTP packets, refer
> to tftp_send() which relies on %c to generate multiple zero-terminated
> strings in one buffer.
>
> [...]
Applied to u-boot/next, thanks!
--
Tom
More information about the U-Boot
mailing list