From dd52dcdcbc35b9f438083261e136c6a56d0ac993 Mon Sep 17 00:00:00 2001 From: sunxuhui Date: Thu, 5 Dec 2024 16:07:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=AE=8C=E5=96=84=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E9=9A=90=E7=A7=81=E5=90=88=E8=A7=84=20=EF=BC=88cherry?= =?UTF-8?q?=20picked=20commit=20from=20=20Si?= =?UTF-8?q?gned-off-by:=20sunxuhui=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/innerkits/appverify/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interfaces/innerkits/appverify/BUILD.gn b/interfaces/innerkits/appverify/BUILD.gn index 2e29775..4fcc932 100644 --- a/interfaces/innerkits/appverify/BUILD.gn +++ b/interfaces/innerkits/appverify/BUILD.gn @@ -31,6 +31,8 @@ if (os_level == "standard") { ubsan = true } + cflags = [ "-fstack-protector-strong" ] + sources = [ "src/common/hap_byte_buffer.cpp", "src/common/hap_byte_buffer_data_source.cpp", @@ -60,6 +62,7 @@ if (os_level == "standard") { cflags_cc = [ "-DHILOG_ENABLE", "-fvisibility=hidden", + "-fstack-protector-strong", ] deps = [] -- Gitee