diff --git a/interfaces/innerkits/appverify/BUILD.gn b/interfaces/innerkits/appverify/BUILD.gn index 2e29775564185433e9a93e93c2b625a24c814330..4fcc9321000b97af432353bfc597457250f226ce 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 = []