[openssh-commits] [openssh] branch master updated: Disable _FORTIFY_SOURCE during snprintf test.
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Jun 4 18:37:05 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new a22ff3c6f Disable _FORTIFY_SOURCE during snprintf test.
a22ff3c6f is described below
commit a22ff3c6f11edd00c19981f9cb85d3b25d305a56
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Wed Jun 4 18:33:52 2025 +1000
Disable _FORTIFY_SOURCE during snprintf test.
Prevents mistakenly detecting snprintf as broken on FreeBSD 15 with
_FORTIFY_SOURCE enabled. bz#3809, patch from jlduran at gmail.com
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 94e782e15..9bc664172 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2503,6 +2503,9 @@ fi
# This is only useful for when BROKEN_SNPRINTF
AC_MSG_CHECKING([whether snprintf can declare const char *fmt])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#ifdef _FORTIFY_SOURCE
+#undef _FORTIFY_SOURCE
+#endif
#include <stdio.h>
int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
]], [[
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list