From: "Thomas Weißschuh" <linux@weissschuh.net>
To: Arav Verma <svav2021@gmail.com>
Cc: w@1wt.eu, shuah@kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH 0/3] tools/nolibc: fix standard conformance of a few string functions
Date: Thu, 26 Nov 2026 08:49:40 +0100 [thread overview]
Message-ID: <ad43e400-f5b7-4291-bc01-cd8deee73c1b@t-8ch.de> (raw)
In-Reply-To: <20261125181453.814976-1-svav2021@gmail.com>
On 2026-11-25 12:14:50-0600, Arav Verma wrote:
> A few nolibc functions deviate from the C standard in corner cases:
> strchr()/strrchr() do not find the terminating NUL, strstr() returns
> NULL for an empty needle, and atoi()/atol() do not skip leading
> whitespace or accept a '+' sign.
>
> Fix them and add test cases. The new tests fail without the fixes. The
> results were also compared against glibc.
>
> Arav Verma (3):
> tools/nolibc: fix strchr() and strrchr() for the NUL terminator
> tools/nolibc: fix strstr() with an empty needle
> tools/nolibc: make atoi() and atol() skip whitespace and accept '+'
Thanks! Applied.
I also verified the new tests against musl.
> tools/include/nolibc/stdlib.h | 5 +++++
> tools/include/nolibc/string.h | 12 +++++-------
> tools/testing/selftests/nolibc/nolibc-test.c | 9 +++++++++
> 3 files changed, 19 insertions(+), 7 deletions(-)
prev parent reply other threads:[~2026-11-26 7:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 18:14 Arav Verma
2026-11-25 18:14 ` [PATCH 1/3] tools/nolibc: fix strchr() and strrchr() for the NUL terminator Arav Verma
2026-11-25 18:14 ` [PATCH 2/3] tools/nolibc: fix strstr() with an empty needle Arav Verma
2026-11-25 18:14 ` [PATCH 3/3] tools/nolibc: make atoi() and atol() skip whitespace and accept '+' Arav Verma
2026-11-26 7:49 ` Thomas Weißschuh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ad43e400-f5b7-4291-bc01-cd8deee73c1b@t-8ch.de \
--to=linux@weissschuh.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=svav2021@gmail.com \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®