File: Use-distro-wide-_FORTIFY_SOURCE.patch

package info (click to toggle)
openvas-scanner 23.30.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,472 kB
  • sloc: ansic: 41,452; xml: 6,251; pascal: 3,723; yacc: 1,250; sh: 1,068; makefile: 275; sql: 266; javascript: 12
file content (27 lines) | stat: -rw-r--r-- 1,098 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Sophie Brun <sophie@kali.org>
Date: Tue, 23 Apr 2024 15:23:01 +0200
Subject: Use distro-wide _FORTIFY_SOURCE

Upstream hardcods the FORTIFY_SOURCE flag in its build-system. Use
distro-wide FORTIFY_SOURCE

Author: florent.jacquet@canonical.com
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/openvas-scanner/+bug/2058758
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067672
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9dd50d8..e0b86c0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -201,7 +201,7 @@ if (ENABLE_COVERAGE)
   set (COVERAGE_FLAGS "--coverage")
 endif (ENABLE_COVERAGE)
 
-set (HARDENING_FLAGS            "-Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector")
+set (HARDENING_FLAGS            "-Wformat -Wformat-security -fstack-protector")
 set (LINKER_HARDENING_FLAGS     "-Wl,-z,relro -Wl,-z,now")
 # The "-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1" is necessary for GPGME!
 set (GPGME_C_FLAGS              "-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1")