Thread (8 messages) 8 messages, 4 authors, 2022-12-20

Re: [PATCH V2] Fix NULL dereference in super_by_fd

From: lixiaokeng <hidden>
Date: 2022-12-19 11:50:59


On 2022/12/15 19:50, Mariusz Tkaczyk wrote:
On Wed, 14 Dec 2022 11:17:41 +0800
lixiaokeng [off-list ref] wrote:
quoted
strcpy(st->devnm, devnm);
Hi,
Please use strncpy or snprintf here.
Thanks for your advice, but the length of devnm is not
a defined value. I will keep it as the old codes.
Thanks,
Mariusz

.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help