From a33ff357ae898191be2b3bd0dbee335a6b324473 Mon Sep 17 00:00:00 2001 From: sunxuhui Date: Wed, 18 Dec 2024 17:11:39 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sunxuhui --- 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