Commit Graph

2392 Commits

Author SHA1 Message Date
wpy88
4789bbf0d3 内存泄漏处理
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-09-02 12:34:29 +08:00
wpy88
46695c51f9 内存泄漏处理
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-09-02 11:27:38 +08:00
wpy88
c426488dce 内存泄漏处理
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-09-02 09:55:44 +08:00
wpy88
dce5b43848 SA内存泄漏处理
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-31 19:26:30 +08:00
openharmony_ci
4880c5bcb8
!1273 修复失败的tdd HksStorageUtilTest006 HksStorageUtilTest007
Merge pull request !1273 from 杨欢欢/tdd
2024-08-27 12:10:38 +00:00
y30053096
793830f709 fix failed tdd
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I1ed0e10f1a9090de69e72e7d166e9950e6f9e039
2024-08-27 17:27:22 +08:00
openharmony_ci
9ce454755c
!1269 删除GetKeyParamSet中的敏感信息
Merge pull request !1269 from Linzs.online/master
2024-08-26 08:53:28 +00:00
l00889714
06ef97d458 不过虑USER_ID和FRONT_USER_ID,不是敏感信息,避免已发功能问题
Signed-off-by: l00889714 <linzhaosheng@huawei.com>
2024-08-26 10:57:06 +08:00
l00889714
b6f3088ea8 删除GetParamSet中获得的敏感字段
Signed-off-by: l00889714 <linzhaosheng@huawei.com>
2024-08-24 17:30:37 +08:00
openharmony_ci
6d1af8b09c
!1267 补充日志CoreInitPreCheck
Merge pull request !1267 from 魏朋羽/master
2024-08-23 11:30:11 +00:00
openharmony_ci
a2de1bc65a
!1264 add rwlock for upgrading keys, use atomic for multi-thread
Merge pull request !1264 from code4lala/rwlock
2024-08-23 09:01:34 +00:00
openharmony_ci
d5bd0ade46
!1268 use HksMalloc and HKS_FREE instead of OPENSSL_malloc and OPENSSL_free to avoid __FILE__
Merge pull request !1268 from code4lala/OPENSSL_malloc
2024-08-23 07:20:14 +00:00
code4lala
c0d6a99348 rm ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: I072b0aa61df2879869f3120710e0bf4eca464b9b
2024-08-23 15:08:59 +08:00
code4lala
e11c8fb6b2 add comment for HksUpgradeOnUserUnlock, acquire read lock before HksPluginOnRemoteRequest
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: If82fe8ad3d50acf9542eac03edfbe4ae882a5cd9
2024-08-23 15:08:35 +08:00
code4lala
4bdbd1e9c1 add rwlock for upgrading keys, use atomic for multi-thread
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Ib74f47a667a8f052aefe085d2389377f8e8a99d7
2024-08-23 15:08:35 +08:00
wpy88
6b2886d806 补充日志CoreInitPreCheck
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-23 11:42:24 +08:00
l00889714
fea68e1779 删除GetKeyParamSet中的敏感信息
Signed-off-by: l00889714 <linzhaosheng@huawei.com>
2024-08-23 11:12:44 +08:00
code4lala
c4f42d543d use HksMalloc and HKS_FREE instead of OPENSSL_malloc and OPENSSL_free to avoid __FILE__
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Ife482134e6251ac1c9e4ec1291212ba316be03ac
2024-08-23 09:34:25 +08:00
wpy88
192d0374f5 补充日志CoreInitPreCheck
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-23 09:23:13 +08:00
wpy88
f8b22027df 补充日志CoreInitPreCheck
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-22 21:04:02 +08:00
openharmony_ci
beb236f28d
!1265 增加对paramsCnt的校验
Merge pull request !1265 from 魏朋羽/master
2024-08-22 07:45:15 +00:00
openharmony_ci
dd8b579e9f
!1266 tdd增加断言
Merge pull request !1266 from 杨欢欢/assert
2024-08-22 02:20:33 +00:00
y30053096
43e609e37b add assert for tdd
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I06ba3be4946b9ac847f27e8503832ab243a9941d
2024-08-21 18:57:13 +08:00
wpy88
097a4ac319 增加对paramsCnt的校验
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-21 18:23:48 +08:00
wpy88
d8f36fb4c3 增加对paramsCnt的校验
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-21 18:20:08 +08:00
wpy88
cebdbd5bd1 Merge branch 'master' of https://gitee.com/wpy88/security_huks 2024-08-21 17:18:38 +08:00
wpy88
41df03393a 增加对paramsCnt上限的校验
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-21 17:18:16 +08:00
openharmony_ci
d3090d5706
!1253 fix遍历全局链表宏实现
Merge pull request !1253 from lwt999/master
2024-08-20 06:54:22 +00:00
openharmony_ci
0bcf9d8bc2
!1250 主要修复空指针未有效置空而在释放内存后再被使用的告警
Merge pull request !1250 from lwt999/master
2024-08-20 06:14:23 +00:00
openharmony_ci
d23319d14a
!1260 HksGetParamBlob 类型参数校验优化
Merge pull request !1260 from 魏朋羽/master
2024-08-20 04:44:05 +00:00
lwt999
d971a689e6 告警修改:指针未有效置空而在释放内存后再被使用+拼写错误
Signed-off-by: lwt999 <liuwanting5@huawei.com>
2024-08-20 10:01:32 +08:00
wpy88
3b4c4a3638 Merge branch 'master' of https://gitee.com/wpy88/security_huks 2024-08-17 09:33:52 +08:00
wpy88
21acf8ae17 HksGetParamBlob类型参数校验优化
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-17 09:33:27 +08:00
openharmony_ci
b9c77931e9
!1258 mini平台新增接口
Merge pull request !1258 from 绫地宁宁0927/myfeature0815
2024-08-16 10:05:25 +00:00
lwt999
2f75b08f5c fix全局遍历链表宏实现
Signed-off-by: lwt999 <liuwanting5@huawei.com>
2024-08-16 16:39:17 +08:00
openharmony_ci
2274e1f098
!1259 删除HksCheckIsAllowedWrap中多余的导致错误的校验
Merge pull request !1259 from 魏朋羽/master
2024-08-16 05:08:08 +00:00
guoxin
8c9e59af8a mini平台新增接口
Signed-off-by: guoxin <756090608@qq.com>
2024-08-16 11:13:06 +08:00
wpy88
efc0b74e73 删除HksCheckIsAllowedWrap中多余的导致错误的校验
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-16 09:47:16 +08:00
wpy88
637f4ca8b5 删除HksCheckIsAllowedWrap中多余的导致错误的校验
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-16 09:43:06 +08:00
wpy88
d18050d68a 修改导致错误的int类型返回值为bool类型
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-16 08:58:37 +08:00
openharmony_ci
70d8b5893a
!1255 修复值传递导致内存泄漏的问题
Merge pull request !1255 from Linzs.online/master
2024-08-14 04:58:17 +00:00
l00889714
7a505572a3 修改值传递导致空指针内存泄漏的告警
Signed-off-by: l00889714 <linzhaosheng@huawei.com>
2024-08-14 11:02:54 +08:00
openharmony_ci
6ddb6bea68
!1254 add error log in hks_condition.c, hks_useridm_api_wrap.cpp
Merge pull request !1254 from code4lala/condition_error_log
2024-08-13 15:22:11 +00:00
code4lala
ff59bfcd28 add error log
Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: Ib50ec5ec0bd5a09f73dfe14078d4592eb062d3c4
2024-08-13 22:14:16 +08:00
openharmony_ci
989a4a52a1
!1247 split hks_core_service.c
Merge pull request !1247 from 魏朋羽/master
2024-08-13 08:53:08 +00:00
wpy88
9e078303e7 蓝区hks_core_service.c微重构
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-12 21:44:27 +08:00
wpy88
2ed398a443 蓝区hks_core_service.c微重构
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-12 21:16:33 +08:00
openharmony_ci
d522a1f76f
!1252 新增错误码 HKS_ERROR_RETRYABLE_ERROR
Merge pull request !1252 from 杨欢欢/tmp
2024-08-12 12:38:01 +00:00
y30053096
3f0b9e3016 add error code HKS_ERROR_RETRYABLE_ERROR
Signed-off-by: y30053096 <yangjinhuan@huawei.com>

Change-Id: I2add3c4ef30cc943e2ab6442cbbd5719ce16e7e5
2024-08-12 17:36:49 +08:00
wpy88
7fd1bc0413 蓝区hks_core_service.c微重构
Signed-off-by: wpy88 <weipengyu4@huawei.com>
2024-08-12 17:35:05 +08:00