]> git.baikalelectronics.ru Git - uboot.git/commit
DFU: Do not copy the entity name over the buffer size
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Mon, 31 Jan 2022 02:52:20 +0000 (11:52 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 11 Feb 2022 16:29:23 +0000 (11:29 -0500)
commitee64f7b5a63f66c24eae1d6b28efae5c8da4be7f
tree1ac6a6f17975e6cdb5653a1adffdfa6c3a1cb8c4
parentae1a753a8242f41a792e24d59d86a9a4c852bd56
DFU: Do not copy the entity name over the buffer size

Use strlcpy() instead of strcpy() to prevent copying the
entity name over the name buffer size.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
drivers/dfu/dfu.c