|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] rangeset: no need to use snprintf()
Hi Jan, On 06/04/2021 09:50, Jan Beulich wrote: As of the conversion to safe_strcpy() years ago there has been no need anymore to use snprintf() to prevent storing a not-nul-terminated string. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
I realize the current code is not checking the return, but I wonder we should rather than silently truncating the string. This is not a new issue, so it can dealt separately if we decide to check the return. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |