Skip to content

Fix recently introduced strnstr() to not search past NUL

André Goddard Rosa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2string: simplify stricmp()lib/string.c+15 -192 replies
2/2string: teach strnstr() to not search past NUL-terminatorlib/string.c+3 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix recently introduced strnstr() to not search past NUL

Also simplify stricmp(), so that we do not increase lib/string.o code size.

André Goddard Rosa (2):
string: simplify stricmp()
string: teach strnstr() to not search past NUL-terminator

 lib/string.c |   38 ++++++++++++++++++--------------------
 1 files changed, 18 insertions(+), 20 deletions(-)