]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
lib/test_string.c: add some testcases for strchr and strnchr
authorPeter Rosin <peda@axentia.se>
Tue, 16 Jul 2019 23:27:21 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jul 2019 02:23:22 +0000 (19:23 -0700)
commitd1a5dc5e6accbeaabe59e3d55b47f15a8b19c2bd
treeb1aa30390186d63f5f8c1cbc24045598033b1314
parent33d6e0ff68af74be0c846c8e042e84a9a1a0561e
lib/test_string.c: add some testcases for strchr and strnchr

Make sure that the trailing NUL is considered part of the string and can
be found.

Link: http://lkml.kernel.org/r/20190506124634.6807-4-peda@axentia.se
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_string.c