diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 359bb5307e8535ab7d59faf27a7377033291821e..0000000000000000000000000000000000000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-# 默认忽略的文件
-/shelf/
-/workspace.xml
diff --git a/.idea/BestPracticeSnippets.iml b/.idea/BestPracticeSnippets.iml
deleted file mode 100644
index 61021940449bdc69db005bbd04a05380f5629b2c..0000000000000000000000000000000000000000
--- a/.idea/BestPracticeSnippets.iml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/git_toolbox_blame.xml b/.idea/git_toolbox_blame.xml
deleted file mode 100644
index 7dc124965d28403ec2545a24d7d1cd1fec1f57d8..0000000000000000000000000000000000000000
--- a/.idea/git_toolbox_blame.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml
deleted file mode 100644
index 02b915b85f9fb22b6e51491729131d93c18d906e..0000000000000000000000000000000000000000
--- a/.idea/git_toolbox_prj.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 3ce358829caa98cea142c0d523e95c04df039a10..0000000000000000000000000000000000000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 891e6bbf8a8464839ecc108f4cb7c0a6e6ac0f5a..0000000000000000000000000000000000000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1ddfbbc029bcab630581847471d7f238ec53..0000000000000000000000000000000000000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index af4e951fed83ff9b9d742780c1328f03ff4df442..0000000000000000000000000000000000000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
- "associatedIndex": 2
-}
-
-
-
-
-
- {
- "keyToString": {
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true"
- }
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/BptaUseResources/build-profile.json5 b/BptaUseResources/build-profile.json5
index 9e87e7e6f19020fe21192844709f192cec80fd44..f120cc13b0fec135d32bc1b97b13b9f71542a237 100644
--- a/BptaUseResources/build-profile.json5
+++ b/BptaUseResources/build-profile.json5
@@ -12,6 +12,9 @@
"strictMode": {
"caseSensitiveCheck": true,
"useNormalizedOHMUrl": true
+ },
+ "packOptions": {
+ "enableSourceCodeCheck": false
}
}
}
diff --git a/MemoryDetection/entry/build-profile.json5 b/MemoryDetection/entry/build-profile.json5
index 4260b3d220c0c29ff1079f43b1b51649c4f20c9c..de2161fac758adf87a9d59089d58f901fb120757 100644
--- a/MemoryDetection/entry/build-profile.json5
+++ b/MemoryDetection/entry/build-profile.json5
@@ -8,6 +8,7 @@
*/
// [Start set_arguments]
"arguments": "-DOHOS_ENABLE_HWASAN=ON",
+ "abiFilters": ["x86_64", "arm64-v8a"]
// [End set_arguments]
}
},
diff --git a/MemoryDetection/entry/src/main/cpp/address_problems.cpp b/MemoryDetection/entry/src/main/cpp/address_problems.cpp
index 2839bce29eb940a4931bcaf189394edec2c781b1..460afb3323c11580fc06a7b2f9ac21fb7e34429a 100644
--- a/MemoryDetection/entry/src/main/cpp/address_problems.cpp
+++ b/MemoryDetection/entry/src/main/cpp/address_problems.cpp
@@ -13,6 +13,7 @@
* limitations under the License.
*/
+#include
#include
/**
diff --git a/NodeAPIDevelopment/entry/src/main/cpp/napi_init.cpp b/NodeAPIDevelopment/entry/src/main/cpp/napi_init.cpp
index 69ca16e9b989328d5fd6337e8f8242bc0ea24b8a..7baaac1dc871313088f7f468c4e2939e9695e248 100644
--- a/NodeAPIDevelopment/entry/src/main/cpp/napi_init.cpp
+++ b/NodeAPIDevelopment/entry/src/main/cpp/napi_init.cpp
@@ -65,7 +65,7 @@ static napi_value GetArgvDemo1(napi_env env, napi_callback_info info) {
// Business code
// ... ...
// The object created by argv for new is manually released after use
- delete argv;
+ delete[] argv;
return nullptr;
}