[Privoxy-commits] [privoxy] branch master updated: build using FORTIFY_SOURCE=3
User Git
git at git.privoxy.org
Sun Dec 7 17:31:36 CET 2025
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
The following commit(s) were added to refs/heads/master by this push:
new a39dcaff build using FORTIFY_SOURCE=3
a39dcaff is described below
commit a39dcaffe92e929c9373654b21fdcfb9d58f66d4
Author: Lee <ler762 at users.sourceforge.net>
AuthorDate: Sun Dec 7 11:30:28 2025 -0500
build using FORTIFY_SOURCE=3
https://www.gnu.org/software/libc/manual/html_node/Source-Fortification.html
FORTIFY_SOURCE=3 provides the highest level of protection so go with
that.
---
windows/MYconfigure | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/windows/MYconfigure b/windows/MYconfigure
index eb309ff4..2a0d1799 100755
--- a/windows/MYconfigure
+++ b/windows/MYconfigure
@@ -47,7 +47,7 @@ CFLAGS="${CFLAGS} -fdiagnostics-color=always"
# It's nice having warnings in color even if I run a script that does
# 'make 2>&1 | tee log.make'
-CFLAGS="${CFLAGS} -fstack-protector-strong -D_FORTIFY_SOURCE=2"
+CFLAGS="${CFLAGS} -fstack-protector-strong"
LDFLAGS="${LDFLAGS} -fstack-protector-strong"
# -fstack-protector-strong: enable stack checking.
# NOTE: need to specify when compiling _and_ linking
@@ -57,7 +57,9 @@ LDFLAGS="${LDFLAGS} -fstack-protector-strong"
# see : https://en.wikipedia.org/wiki/Buffer_overflow_protection
# NOTE: needs static linking or the following in the path:
# /usr/i686-w64-mingw32/sys-root/mingw/bin/libssp-0.dll
-#
+
+CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=3"
+# https://www.gnu.org/software/libc/manual/html_node/Source-Fortification.html
# -D_FORTIFY_SOURCE: detect some buffer overflow errors
# ***>> requires compiler optimization level 1 or above <<***
# see : https://gcc.gnu.org/legacy-ml/gcc-patches/2004-09/msg02055.html
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list