summaryrefslogtreecommitdiff
path: root/net-libs/libhtp/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-16 23:51:35 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-16 23:51:35 +0100
commit3e488f4a5f53b007af8cc3180f9ac0abfe5a0be8 (patch)
tree3a5fcb18d05b450eddb486845092460150afe2ad /net-libs/libhtp/files
parentd83532aee7e94505bf23da29e6224ca164aac759 (diff)
gentoo auto-resync : 16:04:2023 - 23:51:35
Diffstat (limited to 'net-libs/libhtp/files')
-rw-r--r--net-libs/libhtp/files/libhtp-0.5.43-configure_fortify_source.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-libs/libhtp/files/libhtp-0.5.43-configure_fortify_source.patch b/net-libs/libhtp/files/libhtp-0.5.43-configure_fortify_source.patch
new file mode 100644
index 000000000000..7fc605f14a38
--- /dev/null
+++ b/net-libs/libhtp/files/libhtp-0.5.43-configure_fortify_source.patch
@@ -0,0 +1,23 @@
+Hardened profiles now set -D_FORTIFY_SOURCE=3, do not let upstream weaken it.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -206,18 +206,6 @@
+ fi
+
+ dnl -----------------------------------------------
+-dnl Check for GCC -D_FORTIFY_SOURCE support
+-dnl -----------------------------------------------
+-AC_MSG_CHECKING(for gcc support of FORTIFY_SOURCE)
+-TMPCFLAGS="${CFLAGS}"
+-CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=2"
+-AC_TRY_COMPILE(,,[gcc_have_fortify_source=yes],[gcc_have_fortify_source=no])
+-AC_MSG_RESULT($gcc_have_fortify_source)
+-if test "$gcc_have_fortify_source" != "yes"; then
+- CFLAGS="${TMPCFLAGS}"
+-fi
+-
+-dnl -----------------------------------------------
+ dnl Check for GCC -Wformat-security support
+ dnl -----------------------------------------------
+ AC_MSG_CHECKING(for gcc support of -Wformat -Wformat-security)