]> git.dujemihanovic.xyz Git - u-boot.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)
commitd8ae90a8d47da2f22041bf9f6fd6d42a598f44ee
tree1ac6a6f17975e6cdb5653a1adffdfa6c3a1cb8c4
parent32a711dbdbec9aed6777d1059d115b1c83d36fca
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