Re: [PATCH] lib: string_helpers: fix potential snprintf() output truncation

From: Andy Shevchenko
Date: Mon Oct 21 2024 - 05:26:34 EST


On Mon, Oct 21, 2024 at 12:14 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> The output of ".%03u" with the unsigned int in range [0, 4294966295] may
> get truncated if the target buffer is not 12 bytes.

I got the same warning last week, thanks for fixing it!
Reviewed-by: Andy Shevchenko <andy@xxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko