mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-11-23 16:09:48 +00:00
修复fuzz crash的问题
Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
parent
1be565e498
commit
b5e403c2aa
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -80,7 +80,18 @@ ohos_fuzztest("AddIccDiallingNumbersFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2023-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -92,7 +92,18 @@ ohos_fuzztest("AutoTimeZoneFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
"autotimezone_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -70,7 +70,18 @@ ohos_fuzztest("GetSimEonsFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -68,7 +68,18 @@ ohos_fuzztest("HexVecToHexStrFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -68,7 +68,18 @@ ohos_fuzztest("IsShowableAsciiOnlyFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -68,7 +68,18 @@ ohos_fuzztest("IsValidNumberStringFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2023 Huawei Device Co., Ltd.
|
||||
# Copyright (C) 2023-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -68,7 +68,18 @@ ohos_fuzztest("MccCountryCodeFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -77,6 +77,10 @@ ohos_fuzztest("SatelliteCoreFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -72,7 +72,18 @@ ohos_fuzztest("SendEnvelopeCmdFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -80,7 +80,18 @@ ohos_fuzztest("SendTerminalResponseCmdFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -79,6 +79,10 @@ ohos_fuzztest("SetRadioStateFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -71,7 +71,18 @@ ohos_fuzztest("SetShowNameFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -80,7 +80,18 @@ ohos_fuzztest("SetShowNumberFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -80,7 +80,18 @@ ohos_fuzztest("SetVoiceMailInfoFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -80,7 +80,18 @@ ohos_fuzztest("SimAuthenticationFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -76,6 +76,10 @@ ohos_fuzztest("UnlockPinFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -68,7 +68,18 @@ ohos_fuzztest("UnMarshallingFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -80,7 +80,18 @@ ohos_fuzztest("UpdateIccDiallingNumbersFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -81,7 +81,18 @@ ohos_fuzztest("UpdateVoiceMailFuzzTest") {
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
"-fvisibility=hidden",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-flto",
|
||||
"-fsanitize=cfi",
|
||||
"-fsanitize-cfi-cross-dso",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
|
||||
"$SUBSYSTEM_DIR/core_service/test/fuzztest/common_fuzzer/addcoreservicetoken_fuzzer.cpp",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2023 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2023-2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -28,7 +28,6 @@ ohos_fuzztest("VcardFuzzTest") {
|
||||
configs = [ "$SUBSYSTEM_DIR/core_service/utils:telephony_log_config" ]
|
||||
|
||||
deps = [
|
||||
"$SUBSYSTEM_DIR/core_service:tel_core_service",
|
||||
"$SUBSYSTEM_DIR/core_service/interfaces/innerkits:tel_core_service_api",
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user