From 6dcbe7cc862f55f0229f7b0bf1c81b31b710356f Mon Sep 17 00:00:00 2001 From: liuxiaowei42 Date: Thu, 28 Sep 2023 15:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=85=8D=E7=BD=AE=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue:https://gitee.com/openharmony/distributedhardware_distributed_input/issues/I8531H Signed-off-by: liuxiaowei42 --- dfx_utils/BUILD.gn | 6 ++++++ inputdevicehandler/BUILD.gn | 6 ++++++ interfaces/inner_kits/BUILD.gn | 6 ++++++ services/sink/inputcollector/BUILD.gn | 6 ++++++ services/sink/sinkmanager/BUILD.gn | 6 ++++++ services/sink/transport/BUILD.gn | 6 ++++++ services/source/inputinject/BUILD.gn | 6 ++++++ services/source/sourcemanager/BUILD.gn | 6 ++++++ services/source/transport/BUILD.gn | 6 ++++++ services/state/BUILD.gn | 6 ++++++ services/transportbase/BUILD.gn | 6 ++++++ sinkhandler/BUILD.gn | 6 ++++++ sourcehandler/BUILD.gn | 6 ++++++ utils/BUILD.gn | 6 ++++++ 14 files changed, 84 insertions(+) diff --git a/dfx_utils/BUILD.gn b/dfx_utils/BUILD.gn index e0f85e6..faffc42 100755 --- a/dfx_utils/BUILD.gn +++ b/dfx_utils/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_dfx_utils") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "include", "${common_path}/include", diff --git a/inputdevicehandler/BUILD.gn b/inputdevicehandler/BUILD.gn index 53a5bc6..e2d56f8 100755 --- a/inputdevicehandler/BUILD.gn +++ b/inputdevicehandler/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_handler") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/interfaces/inner_kits/BUILD.gn b/interfaces/inner_kits/BUILD.gn index 4900ec4..ff976ba 100644 --- a/interfaces/inner_kits/BUILD.gn +++ b/interfaces/inner_kits/BUILD.gn @@ -32,6 +32,12 @@ config("input_sdk_public_config") { ] } ohos_shared_library("libdinput_sdk") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true public_configs = [ ":input_sdk_public_config" ] sources = [ diff --git a/services/sink/inputcollector/BUILD.gn b/services/sink/inputcollector/BUILD.gn index 6e18351..70ab493 100755 --- a/services/sink/inputcollector/BUILD.gn +++ b/services/sink/inputcollector/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_collector") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/services/sink/sinkmanager/BUILD.gn b/services/sink/sinkmanager/BUILD.gn index 6dc1280..def1bff 100644 --- a/services/sink/sinkmanager/BUILD.gn +++ b/services/sink/sinkmanager/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_sink") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/services/sink/transport/BUILD.gn b/services/sink/transport/BUILD.gn index 240becf..2ed590e 100644 --- a/services/sink/transport/BUILD.gn +++ b/services/sink/transport/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_sink_trans") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/services/source/inputinject/BUILD.gn b/services/source/inputinject/BUILD.gn index 0c69735..b736d2e 100644 --- a/services/source/inputinject/BUILD.gn +++ b/services/source/inputinject/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_inject") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/services/source/sourcemanager/BUILD.gn b/services/source/sourcemanager/BUILD.gn index 7bfd57f..841906b 100644 --- a/services/source/sourcemanager/BUILD.gn +++ b/services/source/sourcemanager/BUILD.gn @@ -15,6 +15,12 @@ import("//build/ohos.gni") import("../../../distributedinput.gni") ohos_shared_library("libdinput_source") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/services/source/transport/BUILD.gn b/services/source/transport/BUILD.gn index 2c752cc..e8ce83d 100755 --- a/services/source/transport/BUILD.gn +++ b/services/source/transport/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_source_trans") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/services/state/BUILD.gn b/services/state/BUILD.gn index 5ca8aaf..dc5f407 100644 --- a/services/state/BUILD.gn +++ b/services/state/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_state") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "include", "${common_path}/include", diff --git a/services/transportbase/BUILD.gn b/services/transportbase/BUILD.gn index 7c84648..6247c52 100644 --- a/services/transportbase/BUILD.gn +++ b/services/transportbase/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_trans_base") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "include", diff --git a/sinkhandler/BUILD.gn b/sinkhandler/BUILD.gn index 7a7c2f5..c3cadb8 100644 --- a/sinkhandler/BUILD.gn +++ b/sinkhandler/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_sink_handler") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "include", "${innerkits_path}/include", diff --git a/sourcehandler/BUILD.gn b/sourcehandler/BUILD.gn index 2cf11d7..11c6fe7 100644 --- a/sourcehandler/BUILD.gn +++ b/sourcehandler/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_source_handler") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "include", "${innerkits_path}/include", diff --git a/utils/BUILD.gn b/utils/BUILD.gn index 6981ac5..df36cca 100644 --- a/utils/BUILD.gn +++ b/utils/BUILD.gn @@ -16,6 +16,12 @@ import( "//foundation/distributedhardware/distributed_input/distributedinput.gni") ohos_shared_library("libdinput_utils") { + sanitize = { + boundary_sanitize = true + integer_overflow = true + ubsan = true + } + stack_protector_ret = true include_dirs = [ "${av_transport_path}/common/include", "${fwk_common_path}/utils/include", -- Gitee