Re: [PATCH 1/5] DFU: Do not copy the entity name over the buffer size

2022-01-02 Thread Ilias Apalodimas
On Mon, 6 Dec 2021 at 07:44, Masami Hiramatsu wrote: > > Use strlcpy() instead of strcpy() to prevent copying the > entity name over the name buffer size. > > Signed-off-by: Masami Hiramatsu > --- > drivers/dfu/dfu.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[PATCH 1/5] DFU: Do not copy the entity name over the buffer size

2021-12-05 Thread Masami Hiramatsu
Use strlcpy() instead of strcpy() to prevent copying the entity name over the name buffer size. Signed-off-by: Masami Hiramatsu --- drivers/dfu/dfu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index af3975925a..66c41b5e76 100644