From c25e55bcf80b7fc5384c34948404ae9d65c29bab Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 2 Oct 2024 12:46:02 -0500 Subject: [PATCH] include: ssp: hide gets_s behind __EXT1_VISIBLE These were supposed to match the visibility of the system's declaration, but this one was overlooked. Fix it now so that `rsize_t` can be hidden appropriately. Reported by: Shawn Webb (and now others) --- include/ssp/stdio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ssp/stdio.h b/include/ssp/stdio.h index f7a390f315a4..630683951e4b 100644 --- a/include/ssp/stdio.h +++ b/include/ssp/stdio.h @@ -50,7 +50,9 @@ __ssp_redirect(size_t, fread, (void *__restrict __buf, size_t __len, size_t __nmemb, FILE *__restrict __fp), (__buf, __len, __nmemb, __fp)); __ssp_redirect(size_t, fread_unlocked, (void *__restrict __buf, size_t __len, size_t __nmemb, FILE *__restrict __fp), (__buf, __len, __nmemb, __fp)); +#if __EXT1_VISIBLE __ssp_redirect(char *, gets_s, (char *__buf, rsize_t __len), (__buf, __len)); +#endif /* __EXT1_VISIBLE */ __ssp_redirect_raw(char *, tmpnam, tmpnam, (char *__buf), (__buf), 1, __ssp_bos, L_tmpnam); #endif