Re: [PATCH v2] checkpatch: add check for snprintf to scnprintf

2024-02-23 Thread Joe Perches
On Fri, 2024-02-23 at 10:38 +, Lee Jones wrote: > On Wed, 21 Feb 2024, Joe Perches wrote: > > > On Wed, 2024-02-21 at 22:11 +, Justin Stitt wrote: > > > I am going to quote Lee Jones who has been doing some snprintf -> > > > scnprintf refactorings: > > > > > > "There is a general misunder

Re: [PATCH v2] checkpatch: add check for snprintf to scnprintf

2024-02-23 Thread Lee Jones
On Thu, 22 Feb 2024, David Laight wrote: > From: Justin Stitt > > Sent: 21 February 2024 22:12 > > > > I am going to quote Lee Jones who has been doing some snprintf -> > > scnprintf refactorings: > > > > "There is a general misunderstanding amongst engineers that > > {v}snprintf() returns the l

Re: [PATCH v2] checkpatch: add check for snprintf to scnprintf

2024-02-23 Thread Lee Jones
On Wed, 21 Feb 2024, Joe Perches wrote: > On Wed, 2024-02-21 at 22:11 +, Justin Stitt wrote: > > I am going to quote Lee Jones who has been doing some snprintf -> > > scnprintf refactorings: > > > > "There is a general misunderstanding amongst engineers that > > {v}snprintf() returns the leng

RE: [PATCH v2] checkpatch: add check for snprintf to scnprintf

2024-02-22 Thread David Laight
From: Justin Stitt > Sent: 21 February 2024 22:12 > > I am going to quote Lee Jones who has been doing some snprintf -> > scnprintf refactorings: > > "There is a general misunderstanding amongst engineers that > {v}snprintf() returns the length of the data *actually* encoded into the > destinatio

Re: [PATCH v2] checkpatch: add check for snprintf to scnprintf

2024-02-21 Thread Joe Perches
On Wed, 2024-02-21 at 22:11 +, Justin Stitt wrote: > I am going to quote Lee Jones who has been doing some snprintf -> > scnprintf refactorings: > > "There is a general misunderstanding amongst engineers that > {v}snprintf() returns the length of the data *actually* encoded into the > destinat

Re: [PATCH v2] checkpatch: add check for snprintf to scnprintf

2024-02-21 Thread Kees Cook
On Wed, Feb 21, 2024 at 10:11:59PM +, Justin Stitt wrote: > I am going to quote Lee Jones who has been doing some snprintf -> > scnprintf refactorings: > > "There is a general misunderstanding amongst engineers that > {v}snprintf() returns the length of the data *actually* encoded into the > d