From 959be45b560b9fd6f23e828a304d202484f69397 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 26 Jul 2024 11:32:27 +0200 Subject: [PATCH] xstrtol, xstrtoll tests: Improve comment. * tests/test-xstrtol.c (main): Clarify that the new test exercises undefined behaviour. --- ChangeLog | 6 ++++++ tests/test-xstrtol.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c35378606..2f2a949b77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-07-26 Bruno Haible + + xstrtol, xstrtoll tests: Improve comment. + * tests/test-xstrtol.c (main): Clarify that the new test exercises + undefined behaviour. + 2024-07-25 Paul Eggert xstrtol: remove the base-checking changes diff --git a/tests/test-xstrtol.c b/tests/test-xstrtol.c index 13ee24219b..2b2b51a47e 100644 --- a/tests/test-xstrtol.c +++ b/tests/test-xstrtol.c @@ -67,7 +67,8 @@ main (int argc, char **argv) { /* Miscellaneous test cases. */ - /* Test an invalid base. Reported by Alejandro Colomar. */ + /* Test an invalid base (undefined behaviour, as documented in xstrtol.h). + Reported by Alejandro Colomar. */ { const char input[] = "k"; char *endp = NULL; -- 2.39.5