Re: [PATCH net-next] net: ncsi: Fix buffer overflow in fetching version id
From: Paul Fertser
Date: Wed Jun 11 2025 - 05:09:21 EST
Hello Hari,
On Tue, Jun 10, 2025 at 12:33:38PM -0700, kalavakunta.hari.prasad@xxxxxxxxx wrote:
> From: Hari Kalavakunta <kalavakunta.hari.prasad@xxxxxxxxx>
>
> In NC-SI spec v1.2 section 8.4.44.2, the firmware name doesn't
> need to be null terminated while its size occupies the full size
> of the field. Fix the buffer overflow issue by adding one
> additional byte for null terminator.
>
> Signed-off-by: Hari Kalavakunta <kalavakunta.hari.prasad@xxxxxxxxx>
You seem to be surprisingly persistent about ignoring my remarks on
your commit message.
So be it, since the code looks correct and reliable, fixes a real life
bug, and actually applies to the right tree now,
Reviewed-by: Paul Fertser <fercerpav@xxxxxxxxx>