From 561f9439f3882ab3f147be3dcdbebc99c00c9406 Mon Sep 17 00:00:00 2001 From: shixuantong <1726671442@qq.com> Date: Mon, 20 Jun 2022 16:28:43 +0800 Subject: [PATCH] add safe compilation option of FS --- python3.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python3.spec b/python3.spec index 0ef5ff5..04a6fc7 100644 --- a/python3.spec +++ b/python3.spec @@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language URL: https://www.python.org/ Version: 3.9.9 -Release: 8 +Release: 9 License: Python %global branchversion 3.9 @@ -202,7 +202,7 @@ topdir=$(pwd) %global extension_cflags "" %global extension_ldflags "" -export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong" +export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv -fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2" export CFLAGS_NODIST="%{build_cflags} -D_GNU_SOURCE -fPIC -fwrapv" export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv" export CPPFLAGS="$(pkg-config --cflags-only-I libffi)" @@ -797,6 +797,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_mandir}/*/* %changelog +* Mon Jun 20 2022 shixuantong - 3.9.9-9 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:add safe compilation option of FS + * Mon May 16 2022 shixuantong - 3.9.9-8 - Type:CVE - CVE:CVE-2015-20107 -- Gitee