Files
u-boot/include
Heinrich Schuchardt 6da11cc81e stdio: fix stdio_deregister_dev()
When copying the name of a stdio device we must ensure that it is NUL
terminated before passing it to strcmp() to avoid a buffer overrun.

Truncating the name field leads to failure to deregister a stdio device.
When copying we must ensure that the name field sizes match.

Addresses-Coverity-ID: 350462 String not null terminated
Fixes: 5294e97832 ("stdio: extend "name" to 32 symbols")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-10-09 15:24:31 -04:00
..
2023-10-02 10:55:44 -04:00
2023-10-06 14:38:12 -04:00
2023-10-02 10:55:44 -04:00
2023-09-11 16:27:49 -04:00
2023-10-09 15:24:31 -04:00