[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <641b320b.a70a0220.2bb1d.30fc@mx.google.com>
Date: Wed, 22 Mar 2023 09:51:22 -0700
From: Kees Cook <keescook@...omium.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Cezary Rojewski <cezary.rojewski@...el.com>,
linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org,
Theodore Ts'o <tytso@....edu>, Jan Kara <jack@...e.com>,
Andy Shevchenko <andy@...nel.org>,
"Rafael J. Wysocki" <rafael@...nel.org>
Subject: Re: [PATCH v1 2/3] lib/string_helpers: Change returned value of the
strreplace()
On Wed, Mar 22, 2023 at 04:12:05PM +0200, Andy Shevchenko wrote:
> It's more useful to return the original string with strreplace(),
I found the use of "original" confusing here and in the comments. This
just returns arg 1, yes? i.e. it's not the original (unreplaced) string,
but rather just the string itself.
I agree, though, that's much more useful than a pointer to the end of
the string.
-Kees
--
Kees Cook
Powered by blists - more mailing lists