Date: Thu, 12 Jun 2025 03:35:26 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d8b51259caee - main - ssp: Protect sig2str with proper visibility markers Message-ID: <202506120335.55C3ZQIV034477@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d8b51259caee09a4080e524ac254e1f5aecc46cc commit d8b51259caee09a4080e524ac254e1f5aecc46cc Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2025-06-12 03:14:16 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2025-06-12 03:19:05 +0000 ssp: Protect sig2str with proper visibility markers We only define SIG2STR_MAX with careful visibility, but define the fortified version unconditionally. It needs to have the same visibility both places. Fixes: 3d12567133bf Reviewed by: jrtc27, kevans Sponsored by: Netflix --- include/ssp/signal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ssp/signal.h b/include/ssp/signal.h index 9f1a926b9db6..fb1da0db90d1 100644 --- a/include/ssp/signal.h +++ b/include/ssp/signal.h @@ -35,6 +35,7 @@ __BEGIN_DECLS +#if __POSIX_VISIBLE >= 202405 || __BSD_VISIBLE __ssp_redirect_raw_impl(int, sig2str, sig2str, (int signum, char *__restrict str)) { @@ -43,6 +44,7 @@ __ssp_redirect_raw_impl(int, sig2str, sig2str, return (__ssp_real(sig2str)(signum, str)); } +#endif __END_DECLS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506120335.55C3ZQIV034477>