Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2024 17:48:15 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c25e55bcf80b - main - include: ssp: hide gets_s behind __EXT1_VISIBLE
Message-ID:  <202410021748.492HmFg1038335@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=c25e55bcf80b7fc5384c34948404ae9d65c29bab

commit c25e55bcf80b7fc5384c34948404ae9d65c29bab
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2024-10-02 17:46:02 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2024-10-02 17:47:55 +0000

    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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410021748.492HmFg1038335>