Commit Graph

48 Commits

Author SHA1 Message Date
zph000 8de11ef836 update
Signed-off-by: zph000 <zhaopenghui8@huawei.com>
Co-Authored-By: Agent
2026-07-31 11:15:22 +08:00
openharmony_ci 8beb5745ad !19654 merge UriSize into master
obs uri check

Created-by: shu-xin0115
Commit-by: shu-xin0115
Merged-by: openharmony_ci
Description: https://openharmonyinsight.cn/review/review/54276
![image.png](https://raw.gitcode.com/user-images/assets/4421702/b200ceeb-f7e6-440b-9d86-f8347947564a/image.png 'image.png')


**IssueNo**:https://gitcode.com/openharmony/distributeddatamgr_data_share/issues/1147

**Description**:obs uri check

**稳定性自检:**
| 自检项                                                       | 自检结果  |
| ------------------------------------------------------------ | -------- |
| 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发              |      Y    |
| 成员变量进行赋值或创建需要排查并发                               |     Y     |
| 谨慎在lambda表达式中使用引用捕获                                |     Y     |
| 谨慎在未经拷贝的情况下使用外部传入的string、C字符串               |     Y     |
| map\vector\list\set等stl模板类使用时需要排查并发                |     Y     |
| 谨慎考虑加锁范围                                               |     Y     |
| 在IPC通信中谨慎使用同步通信方式                                 |     Y     |
| 禁止传递this指针至其他模块或线程(特别是eventhandler任务)        |     Y     |
| 禁止将外部传入的裸指针在内部直接构造智能指针                      |     Y     |
| 禁止多个独立创建的智能指针管理同一地址                           |     Y     |
| 禁止在析构函数中抛异步任务                                      |     Y     |
| 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁             |    Y      |
| 禁止在对外接口中未经判空直接使用外部传入的指针                    |   Y       |
| 禁止接口返回局部变量引用                                        |    Y      |
| 禁止在信号函数中加锁                                            |     Y     |
| 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作           |     Y     |
| 禁止将同一个cpp编译在不同的so中                                 |     Y     |

**安全编码自检:**
| 自检项                                                          | 自检结果 |
| -------------------------------------------------------------- | -------- |
| 裸指针避免通过隐式转换构造为sptr                                 |     Y     |
| json对象在取值之前必须先判断类型,避免类型不匹配                   |     Y     |
| 序列化时必须对传入的数组大小进行校验,避免出现超大数组              |     Y     |
| 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型            |     Y     |
| 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 |     Y     |
| 指针变量、表示资源描述符的变量、bool变量必须赋初值                  |     Y     |
| readParcelable获取的对象使用前需要判空                            |     Y     |
| 分配和释放内存的函数需要成对出现                                   |    Y      |
| 申请内存后异常退出前需要及时进行内存释放                            |    Y      |
| 内存申请前必须对内存大小进行合法性校验                              |     Y     |
| 内存分配后必须判断是否成功                                         |    Y      |
| 禁止使用realloc、alloca函数                                       |     Y     |
| 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰          |    Y      |
| 禁止打印内存地址                                                  |    Y      |
| 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0               |    Y      |
| 禁止对有符号整数进行位操作符运算                                    |    Y      |
| 禁止对指针进行逻辑或位运算                                         |    Y      |
| 循环次数如果收外部数据控制,需要检验其合法性                         |     Y     |
| 禁止使用内存操作类危险函数,需要使用安全函数                         |     Y     |
| 谨慎使用不可重入函数                                               |     Y     |
| 必须检查安全函数的返回值,并进行正确处理                             |    Y      |
| 禁止仅通过TokenType类型判断绕过权限校验                             |    Y      |

**TDD Result**:
![image.png](https://raw.gitcode.com/user-images/assets/4421702/37bf2cfa-1895-4208-ad08-70944e2853a3/image.png 'image.png')
**XTS Result**:
![image.png](https://raw.gitcode.com/user-images/assets/4421702/a584fdd7-667d-440f-b9c8-7dce0d987d7c/image.png 'image.png')
### 是否已执行L0用例
- [x] 已验证
- [ ] 不涉及。如不涉及,请写明理由


See merge request: openharmony/ability_ability_runtime!19654
2026-06-23 22:28:51 +08:00
zqz979 911203bb86 fix
Signed-off-by: zqz979 <zhouqingze@h-partners.com>
2026-06-23 16:41:11 +08:00
shu-xin0115 402d739cb0 obs uri check
Signed-off-by: shu-xin0115 <shuxin15@h-partners.com>
Co-Authored-By: Agent
2026-06-23 10:57:12 +08:00
zhai-peizhe 18373fab3d 订阅通知系统权限校验打点
Signed-off-by: zhai-peizhe <zhaipeizhe@huawei.com>
Change-Id: I763f45608e9c30f2f43fc50cf2742e747954944a
2026-02-11 17:34:15 +08:00
shu-xin0115 58efe64571 dataobsmgr 代码同步
Signed-off-by: shu-xin0115 <shuxin15@h-partners.com>
2026-02-09 10:31:34 +08:00
邓俊 ad76b59aa2 fix:修改检视意见
Signed-off-by: 邓俊 <dengjun39@huawei.com>
2025-12-10 16:46:33 +08:00
shu-xin0115 85a00b4590 fix codecheck
Signed-off-by: shu-xin0115 <shuxin15@h-partners.com>
2025-10-17 15:09:33 +08:00
louzhihao ec675221c8 permission
Signed-off-by: louzhihao <louzhihao@huawei.com>
Change-Id: I82cdba0dfae28033fe4372ca174b28d90d56c352
2025-09-23 14:36:57 +08:00
zhai-peizhe 0e16f50d40 优化obs在监听到对端死亡后的恢复订阅
Signed-off-by: zhai-peizhe <zhaipeizhe@huawei.com>
Change-Id: I9a7c21e17afa1258c2dd00c23effd74052fafdc5
2025-09-10 17:31:18 +08:00
louzhihao 751e351461 permission
Signed-off-by: louzhihao <louzhihao@huawei.com>
Change-Id: Iee2740b4b616c7000f8f819af4baebf3fc4fb15f
2025-08-15 09:28:53 +08:00
louzhihao ed72ff4fdc register check user
Signed-off-by: louzhihao <louzhihao@huawei.com>
Change-Id: I406f045e3c480f173bc86d92e93cd42673775988
2025-07-12 14:41:42 +08:00
bjd 80af393ff4 部件化整改
Signed-off-by: bjd <baijidong@huawei.com>
2025-05-28 17:01:02 +08:00
bjd e361ef220f 部件化整改
Signed-off-by: bjd <baijidong@huawei.com>
2025-05-28 16:52:03 +08:00
louzhihao 9afc589968 system obs
Signed-off-by: louzhihao <louzhihao@huawei.com>
Change-Id: Ibf42fbf785307cbdd07f3d1345a56e95d18b7eda
2025-04-19 09:22:07 +08:00
louzhihao f11f863cf7 user
Signed-off-by: louzhihao <louzhihao@huawei.com>
Change-Id: Ib9221ea2c300109b63a930e33dfe04a62d1e2a14
2025-04-06 15:34:06 +08:00
zph c5fdecbd03 update
Signed-off-by: zph <zhaopenghui8@huawei.com>
2025-02-17 22:38:15 +08:00
zph b4bcc9b641 update
Signed-off-by: zph <zhaopenghui8@huawei.com>
2025-02-17 19:22:29 +08:00
zph 63558146bd update
Signed-off-by: zph <zhaopenghui8@huawei.com>
2025-02-17 17:01:04 +08:00
zph db45dc8eed update
Signed-off-by: zph <zhaopenghui8@huawei.com>
2025-02-17 15:15:46 +08:00
zph ee4825429f update
Signed-off-by: zph <zhaopenghui8@huawei.com>
2025-02-15 21:30:12 +08:00
wangjiaqiang 7159648e57 修复扫描单例告警
Signed-off-by: wangjiaqiang <wangjiaqiang11@huawei.com>
2024-09-01 17:36:26 +08:00
jiaojiaoHuang 33e18b2fe0 remove changetype
Signed-off-by: jiaojiaoHuang <huangjiaojiao9@huawei.com>
2024-07-30 11:06:50 +08:00
jiaojiaoHuang f7373f8c39 date change notify
Signed-off-by: jiaojiaoHuang <huangjiaojiao9@huawei.com>
2024-07-29 10:15:52 +08:00
wangdengze e2f565bfe4 UAF
Signed-off-by: wangdengze <wangdengze@huawei.com>
2024-07-01 16:06:53 +08:00
wangdengze 57b8c50333 modify lock
Signed-off-by: wangdengze <wangdengze@huawei.com>
2024-06-19 21:16:17 +08:00
wangdengze 0a9b8aa436 modify re register
Signed-off-by: wangdengze <wangdengze@huawei.com>
2024-06-17 15:54:45 +08:00
srr101 5a7a3af5b2 code check fix
Signed-off-by: srr101 <songruirui1@huawei.com>
2024-03-27 19:48:25 +08:00
srr101 63f5ca3bad delete unuse function
Signed-off-by: srr101 <songruirui1@huawei.com>
2024-03-27 19:38:18 +08:00
srr101 3582680370 检视意见修改
Signed-off-by: srr101 <songruirui1@huawei.com>
2024-03-22 14:41:48 +08:00
srr101 8e2ca909fb 编译报错修改
Signed-off-by: srr101 <songruirui1@huawei.com>
2024-03-19 11:43:09 +08:00
srr101 f345eebe51 通知上报带value
Signed-off-by: srr101 <songruirui1@huawei.com>
2024-03-19 00:53:14 +08:00
changjiaxing 1d97222e6e Preference supports inter process data subscription
Signed-off-by: changjiaxing <changjiaxing2@huawei.com>
Change-Id: I5683d7f87a69464e86a2e37f8370f9156a973933
2023-07-10 11:54:42 +08:00
openharmony_ci 892312ca4e !5346 对上报数据变化时,携带的额外信息进行深拷贝
Merge pull request !5346 from houpengtao/master
2023-05-12 09:51:30 +00:00
srr101 6c2db5e866 增加对len的限制
Signed-off-by: srr101 <songruirui1@huawei.com>
2023-05-05 15:07:05 +08:00
houpengtao 68c3d5dbd6 bug fix
Signed-off-by: houpengtao <houpengtao@huawei.com>
2023-05-03 10:03:59 +08:00
htt1997 8d39b62283 modify and code check
Signed-off-by: htt1997 <hutao105@huawei.com>
2023-03-02 09:56:18 +08:00
htt1997 b55c2f14a9 检视意见修改
Signed-off-by: htt1997 <hutao105@huawei.com>
2023-03-01 16:23:19 +08:00
htt1997 638da71fa3 modify
Signed-off-by: htt1997 <hutao105@huawei.com>
2023-02-23 17:52:20 +08:00
htt1997 af6cbec244 code check
Signed-off-by: htt1997 <hutao105@huawei.com>
2023-02-21 14:18:07 +08:00
htt1997 553695ff46 init
Signed-off-by: htt1997 <hutao105@huawei.com>
2023-02-21 12:54:07 +08:00
m00512953 53d2ea8ece mingxihua@huawei.com.cn
Signed-off-by: m00512953 <mingxihua@huawei.com>
2022-11-07 15:40:10 +08:00
yuwenze 4e64474e2f Description:add hidumper
Sig:SIG_ApplicationFramework
Feature or Bugfix:Bugfix
Binary Source:No

Signed-off-by: yuwenze <yuaqiang1@huawei.com>
Change-Id: I1e7a1d758ba366ed70dd01118cfc16d7858936c6
2022-09-06 16:17:54 +08:00
zhoushicheng 891240e7ef IssueNo: #I5IAIK
Signed-off-by: zhoushicheng <zhoushicheng2@huawei.com>
Change-Id: I0fe8ab3a6fdcd358191eb82939907986be31401b
2022-07-21 23:27:10 +08:00
黄师伟 475fcf7694 modify marco definition for ability_runtime
Signed-off-by: 黄师伟 <huangshiwei4@huawei.com>
2022-07-18 19:22:39 +08:00
William Dean ef4ee78568 Delete extra space or tab indent
1, Delete extra space or tab indent in {.h, .cpp} file.
This warnings are reported and fixed by a tool named "Hacash Robot".

Signed-off-by: William Dean <williamsukatube@gmail.com>
2022-06-30 00:05:41 +08:00
openharmony_ci ee5bced946 !2021 静态告警修复
Merge pull request !2021 from xzz_0810/xzz_ability
2022-06-08 04:06:34 +00:00
shiqichang 08919b1bfb aafwk directory switching
Signed-off-by: shiqichang <shiqichang@huawei.com>
Change-Id: I975405a9a353dc331226b215d31f8c0c396d232c
2022-06-07 14:53:05 +08:00