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/stdio/sprintf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdio/sprintf.c') diff --git a/src/stdio/sprintf.c b/src/stdio/sprintf.c index 5b1ad29f..fcb1ddac 100644 --- a/src/stdio/sprintf.c +++ b/src/stdio/sprintf.c @@ -12,6 +12,7 @@ int sprintf(char * restrict s, const char * restrict format, ...) struct io_options opt = {0}; SIGNAL_SAFE(0); + /* overlap can't be detected because the length of s is unknown */ opt.fnname = "sprintf"; opt.string = s; -- cgit v1.2.1