Description:Undefined behavior

Feature or Bugfix:Feature
Binary Source:NA

Signed-off-by: sun-jiashun-123 <sunjiashun@huawei.com>
This commit is contained in:
sun-jiashun-123 2024-05-16 17:29:00 +08:00
parent 83e576e9fa
commit 4c45452c1a
14 changed files with 42 additions and 0 deletions

View File

@ -214,6 +214,9 @@ if (defined(ohos_lite)) {
ohos_shared_library("softbus_adapter") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -94,6 +94,9 @@ config("mbedtls_config") {
ohos_shared_library("mbedtls_shared") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -102,6 +102,9 @@ if (defined(ohos_lite)) {
import("//build/ohos.gni")
ohos_shared_library("FillpSo.open") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -70,6 +70,9 @@ if (defined(ohos_lite)) {
ohos_shared_library("nstackx_congestion.open") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -125,6 +125,9 @@ if (defined(ohos_lite)) {
ohos_shared_library("nstackx_dfile.open") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -152,6 +152,9 @@ if (defined(ohos_lite)) {
import("//build/ohos.gni")
ohos_shared_library("nstackx_ctrl") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -174,6 +174,9 @@ if (defined(ohos_lite)) {
ohos_shared_library("nstackx_util.open") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -139,6 +139,9 @@ if (defined(ohos_lite)) {
}
ohos_shared_library("softbus_utils") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -55,6 +55,9 @@ if (defined(ohos_lite)) {
}
ohos_shared_library("softbus_dfx_anonymizer") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -50,6 +50,9 @@ if (defined(ohos_lite)) {
}
ohos_shared_library("softbus_dfx_event") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -74,6 +74,9 @@ if (defined(ohos_lite)) {
}
ohos_shared_library("softbus_dfx_dump") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -55,6 +55,9 @@ if (defined(ohos_lite)) {
}
ohos_shared_library("softbus_dfx_log") {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -55,6 +55,9 @@ ohos_static_library("wifi_direct") {
if (dsoftbus_feature_conn_p2p == true &&
softbus_communication_wifi_feature == true) {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false

View File

@ -106,6 +106,9 @@ target(build_type, "softbus_client") {
ldflags = [ "-lstdc++" ]
} else {
sanitize = {
ubsan = true
integer_overflow = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false