lilac/repo/rstudio-desktop/0003-fortify_source.patch

13 lines
661 B
Diff
Raw Normal View History

diff -ru a/src/rstudio-2024.04.1-748/src/cpp/CMakeLists.txt b/src/rstudio-2024.04.1-748/src/cpp/CMakeLists.txt
--- a/src/rstudio-2024.04.1-748/src/cpp/CMakeLists.txt 2024-05-07 06:31:08.000000000 +1200
+++ b/src/rstudio-2024.04.1-748/src/cpp/CMakeLists.txt 2024-05-28 17:44:46.567294045 +1200
@@ -139,7 +139,7 @@
# gcc hardending options (see: http://wiki.debian.org/Hardening)
if(NOT APPLE)
add_definitions(-Wformat -Wformat-security)
- add_definitions(-D_FORTIFY_SOURCE=2)
+ add_definitions(-D_FORTIFY_SOURCE=3)
add_definitions(-fstack-protector-strong)
add_definitions(-fPIC)
if(CMAKE_BUILD_TYPE STREQUAL Debug)