Re: [PATCH v1 1/1] lib/string: Use strchr() in strpbrk()

From: Kees Cook
Date: Fri Jan 27 2023 - 13:55:34 EST


On Fri, 27 Jan 2023 17:51:35 +0200, Andy Shevchenko wrote:
> Use strchr() instead of open coding it as it's done elsewhere in
> the same file. Either we will have similar to what it was or possibly
> better performance in case architecture implements its own strchr().
>
> Memory wise on x86_64 bloat-o-meter shows the following
>
> Function old new delta
> strsep 111 102 -9
> Total: Before=2763, After=2754, chg -0.33%
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] lib/string: Use strchr() in strpbrk()
https://git.kernel.org/kees/c/a5f5ee7c49da

--
Kees Cook