Re: [PATCH 4/6] lib/string: Add string copy/zero function

2019-02-25 Thread Tobin C. Harding
On Wed, Feb 20, 2019 at 04:48:18PM -0800, Kees Cook wrote: > On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > > > We have a function to copy strings safely and we have a function to copy > > strings _and_ zero the tail of the destination (if source string is > > shorter than destination

Re: [PATCH 4/6] lib/string: Add string copy/zero function

2019-02-21 Thread Andy Shevchenko
On Thu, Feb 21, 2019 at 2:49 AM Kees Cook wrote: > On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > > > We have a function to copy strings safely and we have a function to copy > > strings _and_ zero the tail of the destination (if source string is > > shorter than destination buffer)

Re: [PATCH 4/6] lib/string: Add string copy/zero function

2019-02-20 Thread Tobin C. Harding
On Wed, Feb 20, 2019 at 04:48:18PM -0800, Kees Cook wrote: > On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > > > We have a function to copy strings safely and we have a function to copy > > strings _and_ zero the tail of the destination (if source string is > > shorter than destination

Re: [PATCH 4/6] lib/string: Add string copy/zero function

2019-02-20 Thread Kees Cook
On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > We have a function to copy strings safely and we have a function to copy > strings _and_ zero the tail of the destination (if source string is > shorter than destination buffer) but we do not have a function to do > both at once. This me

[PATCH 4/6] lib/string: Add string copy/zero function

2019-02-18 Thread Tobin C. Harding
We have a function to copy strings safely and we have a function to copy strings _and_ zero the tail of the destination (if source string is shorter than destination buffer) but we do not have a function to do both at once. This means developers must write this themselves if they desire this funct