[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: Re: [PATCH] ext4: replace deprecated strncpy with alternatives
From: "Theodore Ts'o" <tytso () mit ! edu>
Date: 2024-05-03 3:59:10
Message-ID: 171470889035.3010818.5490902997038029222.b4-ty () mit ! edu
[Download RAW message or body]
On Thu, 21 Mar 2024 01:03:10 +0000, Justin Stitt wrote:
> strncpy() is deprecated for use on NUL-terminated destination strings
> [1] and as such we should prefer more robust and less ambiguous string
> interfaces.
>
> in file.c:
> s_last_mounted is marked as __nonstring meaning it does not need to be
> NUL-terminated. Let's instead use strtomem_pad() to copy bytes from the
> string source to the byte array destination -- while also ensuring to
> pad with zeroes.
>
> [...]
Applied, thanks!
[1/1] ext4: replace deprecated strncpy with alternatives
commit: 744a56389f7398f286231e062c2e63f0de01bcc6
Best regards,
--
Theodore Ts'o <tytso@mit.edu>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic