grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] term/serial: Ensure proper NULL termination after grub_strnc


From: Daniel Kiper
Subject: Re: [PATCH] term/serial: Ensure proper NULL termination after grub_strncpy
Date: Thu, 5 Oct 2023 18:19:53 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Fri, Jul 14, 2023 at 03:33:19PM -0500, Glenn Washburn wrote:
> A large enough argument to the --port option could cause a string buffer
> to be not NULL terminated because grub_strncpy() does not guarantee NULL
> termination if copied string is longer than max characters to copy.
>
> Fixes: 712309eaae04 (term/serial: Use grub_strncpy() instead of 
> grub_snprintf() when only copying string)
> Signed-off-by: Glenn Washburn <development@efficientek.com>

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]