From nobody Wed Oct 02 17:48:15 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XJj2l31ZHz5XrCW; Wed, 02 Oct 2024 17:48:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJj2l2QLnz4Jm8; Wed, 2 Oct 2024 17:48:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727891295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q7BdoZxauLPwZr/A4/qvYubLt3Ru72QLbPYOqLfIS2o=; b=lRnS2jclYmBtgb8JWw/4/SqSBgg4UpYz/7tGdQhm3sIY3y35Ui123LWkxg4RHR6XIpBdv6 1twDlVhn1b7cngzvcjUtRxxFvAsm8gq7x08bessQ0brnprVcHMOipZb3xp11s4SOsIaSIv Dzh3OaAr15f2OVTJK0y0wutmkZKeeV6pCqCd4gHY1jGxU02UFI1WChmaW+KZ6hl2g4aIqA RxB9NJlN0a3uBAs87rt4MLQzyQZevrAXoAr4MBykTg7qwfysaPFLdcZogfml2PVqiTrPPO usge50/41dZJZzdjTTN64LrrCR/Xx7m0CKRAgKuIftUMmc0u67bIfQEGD14QTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727891295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=q7BdoZxauLPwZr/A4/qvYubLt3Ru72QLbPYOqLfIS2o=; b=nUM1DPzZ+IOgozf3XHgltX213FPI3xq0GVUTbuFEwv+iNIPyASCLKLDCeI1KRO8EDtcWIf U32LGLNVyZ8saSjfP6EY+NBKouon8s+zlpDjUJUGhyTD29J1SoqIFzr8mB/xxHYyqaZyZG 9XTuo4sbvuXoXoHxVXcey5rrl8ayfVQaUL3nsvQs8EnGDbK2akk1voIiDTh6yi75HLlwhe JYHA/7QnfZj4QMCrFjiziVNyykN24aWPkgZrz5rNCzTxsekohlkrGEehhQqbmfUS6nMKzg perO78uIWBfrYF5cJj3A4tAVukBXiKVw2w3hmmgwTt5H2A5aYWda5q5URxelaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727891295; a=rsa-sha256; cv=none; b=ZSwLbOx+tW6zl3+aQkyIVWACCKBjDUHnNB+BBAT9bYhQrE3hZQdJPyR/2cWydopgJDXCkC SY7IFP5udpDZDd+Vm6yKQ3CF9goXz3Yk/R8sCPxHbLfZNm+kNDXP9fgWgqzg1nmpZdBOGp UnE1KzJ7N8hqdCSOHeSQ2BGrXakk4mB1pjx52z55bqpFG6vHAjASZoli7tamOOxtOLdCiA kjMDPs/WYMsMSgFrZPJCMpY4d7CkV2Q94Ny7FBzeeHnM15nBzugoGCkn308CQNFN+rmjLw 5WSiySShXj4qeMqD/hiJV5K8T4ql1OBvngQDEhTfRSrTgs8BYNNa19a3yoAMLw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XJj2l1vMmzFrD; Wed, 2 Oct 2024 17:48:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 492HmFOK038338; Wed, 2 Oct 2024 17:48:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 492HmFg1038335; Wed, 2 Oct 2024 17:48:15 GMT (envelope-from git) Date: Wed, 2 Oct 2024 17:48:15 GMT Message-Id: <202410021748.492HmFg1038335@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: c25e55bcf80b - main - include: ssp: hide gets_s behind __EXT1_VISIBLE List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c25e55bcf80b7fc5384c34948404ae9d65c29bab Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=c25e55bcf80b7fc5384c34948404ae9d65c29bab commit c25e55bcf80b7fc5384c34948404ae9d65c29bab Author: Kyle Evans AuthorDate: 2024-10-02 17:46:02 +0000 Commit: Kyle Evans 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