From 4b43b375b7abae22070cd86bfc26a8222233150e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 13:24:56 -0500 Subject: check for overlapping pointers --- src/stdlib/strtold.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stdlib/strtold.c') diff --git a/src/stdlib/strtold.c b/src/stdlib/strtold.c index 43fc77bd..b658152b 100644 --- a/src/stdlib/strtold.c +++ b/src/stdlib/strtold.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "_stdlib.h" /** convert string to floating-point **/ @@ -17,6 +18,7 @@ long double strtold(const char * restrict nptr, char ** restrict endptr) long double nan = NAN; SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(nptr, strlen(nptr), endptr, sizeof(*endptr)); #include "_strtod.h" -- cgit v1.2.1