| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
pc告警修改 Signed-off-by: zhangyuhang72 <zhangyuhang72@h-partners.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: opencode (glm-5.2) <ai@local> Change-Id: Ibe1d2c17709d8e86f3a4e422935674ce9c28248c | 1 个月前 | |
add err message for 1600050 Signed-off-by: AsukaSoryu <gongyuechen@huawei.com> Co-Authored-By: Agent | 3 个月前 | |
修改public_external_dep Signed-off-by: SKY2001 <songtianyu10@huawei.com> Co-Authored-By: sky | 3 个月前 | |
安全告警 Signed-off-by: lidongrui <lidongrui3@huawei.com> Co-Authored-By: Agent 🤖 AI[0%] 🔧 Human Fixed[0%] 🧑 Human[100%] 👌 AI Adopted[0%] | 2 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
applicationContext在有更新时复用缓存对象而非创建新对象 Co-Authored-By: Agent Signed-off-by: 任国军 <renguojun1@h-partners.com> | 1 个月前 | |
fix warning Co-Authored-By:Agent Signed-off-by: littlejerry1 <sijunjie@huawei.com> 🤖 AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%] | 3 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
cfi_0323 Co-Authored-By:Agent Signed-off-by: Luobniz21 <luoyicong@h-partners.com> Change-Id: Id04d2fede8db6afb669481142413bb43e5b562c7 | 6 个月前 | |
applicationContext在有更新时复用缓存对象而非创建新对象 Co-Authored-By: Agent Signed-off-by: 任国军 <renguojun1@h-partners.com> | 1 个月前 | |
!20299 merge FixGetMem into master 修改入参检查和类型转换截断 Created-by: SKY2001 Commit-by: SKY2001 Merged-by: openharmony_ci Description: 修改入参检查和类型转换截断 https://gitcode.com/openharmony/ability_ability_runtime/issues/16062?ref=&did=4280058#tid-4280058 See merge request: openharmony/ability_ability_runtime!20299 | 1 个月前 | |
add va_end Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com> | 8 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
applicationContext在有更新时复用缓存对象而非创建新对象 Co-Authored-By: Agent Signed-off-by: 任国军 <renguojun1@h-partners.com> | 1 个月前 | |
修改appRecovery问题 Signed-off-by: acdemicJava <yinhuiling@h-partners.com> | 2 个月前 | |
set pid Signed-off-by: xhz-sz <xiehuandong@h-partners.com> AI[0%] Human Fixed[0%] Human[100%] AI Adopted[0%] | 1 个月前 | |
fix auto fill Co-Authored-By: manual Signed-off-by: zzl12383 <zhengzhuolan@huawei-partners.com> | 5 个月前 | |
修改public_external_dep Signed-off-by: SKY2001 <songtianyu10@huawei.com> Co-Authored-By: sky | 3 个月前 | |
cfi_0323 Co-Authored-By:Agent Signed-off-by: Luobniz21 <luoyicong@h-partners.com> Change-Id: Id04d2fede8db6afb669481142413bb43e5b562c7 | 6 个月前 | |
补充查询子进程的接口 Signed-off-by: SKY2001 <songtianyu10@huawei.com> AI[47%] Human Fixed[0%] Human[53%] AI Adopted[100%] | 1 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
0630_50code Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Jun 30 20:59:14 2026 +0800 # # On branch 0630_50 # Your branch is up to date with 'origin/0630_50'. # # Changes to be committed: # modified: frameworks/ets/ani/ability_manager/src/ets_ability_manager.cpp # modified: frameworks/ets/ani/dialog_session/src/ets_dialog_session.cpp # modified: frameworks/ets/ani/uri_permission_manager/src/ets_uri_perm_mgr.cpp # modified: frameworks/js/napi/ability_manager/js_ability_manager.cpp # modified: frameworks/js/napi/js_dialog_session/BUILD.gn # modified: frameworks/js/napi/js_dialog_session/js_dialog_session.cpp # modified: frameworks/js/napi/uri_permission/js_uri_perm_mgr.cpp # modified: frameworks/native/ability/native/ability_business_error/ability_business_error.cpp # modified: interfaces/kits/native/ability/native/ability_business_error/ability_business_error.h # # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Jun 30 20:59:14 2026 +0800 # # On branch 0630_50 # Your branch is up to date with 'origin/0630_50'. # # Changes to be committed: # modified: frameworks/ets/ani/ability_manager/src/ets_ability_manager.cpp # modified: frameworks/ets/ani/dialog_session/src/ets_dialog_session.cpp # modified: frameworks/ets/ani/uri_permission_manager/src/ets_uri_perm_mgr.cpp # modified: frameworks/js/napi/ability_manager/js_ability_manager.cpp # modified: frameworks/js/napi/js_dialog_session/BUILD.gn # modified: frameworks/js/napi/js_dialog_session/js_dialog_session.cpp # modified: frameworks/js/napi/uri_permission/js_uri_perm_mgr.cpp # modified: frameworks/native/ability/native/ability_business_error/ability_business_error.cpp # modified: interfaces/kits/native/ability/native/ability_business_error/ability_business_error.h # # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Jun 30 20:59:14 2026 +0800 # # On branch 0630_50 # Your branch is up to date with 'origin/0630_50'. # # Changes to be committed: # modified: frameworks/ets/ani/ability_manager/src/ets_ability_manager.cpp # modified: frameworks/ets/ani/dialog_session/BUILD.gn # modified: frameworks/ets/ani/dialog_session/src/ets_dialog_session.cpp # modified: frameworks/ets/ani/uri_permission_manager/src/ets_uri_perm_mgr.cpp # modified: frameworks/js/napi/ability_manager/js_ability_manager.cpp # modified: frameworks/js/napi/js_dialog_session/BUILD.gn # modified: frameworks/js/napi/js_dialog_session/js_dialog_session.cpp # modified: frameworks/js/napi/uri_permission/js_uri_perm_mgr.cpp # modified: frameworks/native/ability/native/ability_business_error/ability_business_error.cpp # modified: interfaces/kits/native/ability/native/ability_business_error/ability_business_error.h # # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Jun 30 20:59:14 2026 +0800 # # On branch 0630_50 # Your branch is up to date with 'origin/0630_50'. # # Changes to be committed: # modified: frameworks/ets/ani/ability_manager/src/ets_ability_manager.cpp # modified: frameworks/ets/ani/dialog_session/BUILD.gn # modified: frameworks/ets/ani/dialog_session/src/ets_dialog_session.cpp # modified: frameworks/ets/ani/uri_permission_manager/src/ets_uri_perm_mgr.cpp # modified: frameworks/js/napi/ability_manager/js_ability_manager.cpp # modified: frameworks/js/napi/js_dialog_session/BUILD.gn # modified: frameworks/js/napi/js_dialog_session/js_dialog_session.cpp # modified: frameworks/js/napi/uri_permission/BUILD.gn # modified: frameworks/js/napi/uri_permission/js_uri_perm_mgr.cpp # modified: frameworks/native/ability/native/ability_business_error/ability_business_error.cpp # modified: interfaces/kits/native/ability/native/ability_business_error/ability_business_error.h # | 3 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
add CreateEtsLaunchParam Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com> | 1 年前 | |
重置function Co-Authored-By: acdemicJava <yinhuiling@h-partners.com> Signed-off-by: acdemicJava <yinhuiling@h-partners.com> | 5 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
修改public_external_dep Signed-off-by: SKY2001 <songtianyu10@huawei.com> Co-Authored-By: sky | 3 个月前 | |
cfi_0323 Co-Authored-By:Agent Signed-off-by: Luobniz21 <luoyicong@h-partners.com> Change-Id: Id04d2fede8db6afb669481142413bb43e5b562c7 | 6 个月前 | |
fix(form): 代码优化 AI[82%] Human Fixed[0%] Human[18%] AI Adopted[100%] Co-authored-by: opencode (glm-5.2) <ai@local> Change-Id: I1a639aa8a88ff6c4c0f966a5b53ee7447f66d5ee Signed-off-by: wutouxu <zhaolixue2@huawei.com> | 2 个月前 | |
修复ani返回值枚举绑定失败 Signed-off-by: zhangatao <zhangtao662@huawei.com> Change-Id: Ia4b0efbf1f6b63c8239890de1be539eda890e120 | 1 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
cfi_0323 Co-Authored-By:Agent Signed-off-by: Luobniz21 <luoyicong@h-partners.com> Change-Id: Id04d2fede8db6afb669481142413bb43e5b562c7 | 6 个月前 | |
feat(rom): adopt optimize_config in 11 effective targets Based on empirical findings (libappms +10KB, ets_environment +0KB, cj_ability_ffi +0KB), exclude SA services, platformsdk innerapi, and small-size targets where optimize_config has no actual benefit. CJ extension (likely effective, non-platformsdk): - cj_form_extension, cj_embedded_ui_extension ANI wrappers (small but stable): - app_memory_optimizer_ani_kit, share_extension_ani, uri_permission_manager_ani_kit NAPI wrappers (small but stable): - autostartupcallback, appmemoryoptimizer_napi, insightintentprovider_napi, dialogrequest_napi, intent_client, scriptmanager_napi Excluded (no empirical benefit based on prior measurements): - SA services: libappms, libupms, libclimgr (shlib_type=sa overrides) - platformsdk innerapi: ets_environment, cli_tool_client, ability_deps_wrapper, perm_verification, ability_start_options, cj_extensionkit_native, ark_interop_helper_ffi - cj_ability_ffi (target cflags -O2 overrides optimize_config -Oz) Skipped (already adopted in other PRs by other contributors): - agentmgr, climanager_napi, functionmanager_napi Skipped (small size, not worth the change): - callee_napi Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 2 个月前 | |
Sync0702ToMaster-ANIMangling Signed-off-by: wuyuanchao <wuyuanchao4@huawei.com> | 9 个月前 | |
AIScan fix Signed-off-by: liusu23 <liusu23@huawei.com> | 3 个月前 | |
cfi_0323 Co-Authored-By:Agent Signed-off-by: Luobniz21 <luoyicong@h-partners.com> Change-Id: Id04d2fede8db6afb669481142413bb43e5b562c7 | 6 个月前 | |
修复安全告警问题-sty Signed-off-by: SKY2001 <songtianyu10@huawei.com> | 2 个月前 | |
feat(rom): adopt optimize_config in 11 effective targets Based on empirical findings (libappms +10KB, ets_environment +0KB, cj_ability_ffi +0KB), exclude SA services, platformsdk innerapi, and small-size targets where optimize_config has no actual benefit. CJ extension (likely effective, non-platformsdk): - cj_form_extension, cj_embedded_ui_extension ANI wrappers (small but stable): - app_memory_optimizer_ani_kit, share_extension_ani, uri_permission_manager_ani_kit NAPI wrappers (small but stable): - autostartupcallback, appmemoryoptimizer_napi, insightintentprovider_napi, dialogrequest_napi, intent_client, scriptmanager_napi Excluded (no empirical benefit based on prior measurements): - SA services: libappms, libupms, libclimgr (shlib_type=sa overrides) - platformsdk innerapi: ets_environment, cli_tool_client, ability_deps_wrapper, perm_verification, ability_start_options, cj_extensionkit_native, ark_interop_helper_ffi - cj_ability_ffi (target cflags -O2 overrides optimize_config -Oz) Skipped (already adopted in other PRs by other contributors): - agentmgr, climanager_napi, functionmanager_napi Skipped (small size, not worth the change): - callee_napi Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 2 个月前 | |
!20179 merge FixSongjianSecondAI into master 修复送检分支扫描-dispatch相关问题 Created-by: SKY2001 Commit-by: SKY2001 Merged-by: openharmony_ci Description: **IssueNo**: https://gitcode.com/openharmony/ability_ability_runtime/issues/15953?ref=&did=4244020#tid-4244020 **Description**: **稳定性自检:** | 自检项 | 自检结果 | | ------------------------------------------------------------ | -------- | | 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | pass | | 成员变量进行赋值或创建需要排查并发 | pass | | 谨慎在lambda表达式中使用引用捕获 | pass | | 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | pass | | map\vector\list\set等stl模板类使用时需要排查并发 | pass | | 谨慎考虑加锁范围 | pass | | 在IPC通信中谨慎使用同步通信方式 | pass | | 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | pass | | 禁止将外部传入的裸指针在内部直接构造智能指针 | pass | | 禁止多个独立创建的智能指针管理同一地址 | pass | | 禁止在析构函数中抛异步任务 | pass | | 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | pass | | 禁止在对外接口中未经判空直接使用外部传入的指针 | pass | | 禁止接口返回局部变量引用 | pass | | 禁止在信号函数中加锁 | pass | | 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | pass | | 禁止将同一个cpp编译在不同的so中 | pass | **安全编码自检:** | 自检项 | 自检结果 | | -------------------------------------------------------------- | -------- | | 裸指针避免通过隐式转换构造为sptr | pass | | json对象在取值之前必须先判断类型,避免类型不匹配 | pass | | 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | pass | | 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | pass | | 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | pass | | 指针变量、表示资源描述符的变量、bool变量必须赋初值 | pass | | readParcelable获取的对象使用前需要判空 | pass | | 分配和释放内存的函数需要成对出现 | pass | | 申请内存后异常退出前需要及时进行内存释放 | pass | | 内存申请前必须对内存大小进行合法性校验 | pass | | 内存分配后必须判断是否成功 | pass | | 禁止使用realloc、alloca函数 | pass | | 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | pass | | 禁止打印内存地址 | pass | | 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | pass | | 禁止对有符号整数进行位操作符运算 | pass | | 禁止对指针进行逻辑或位运算 | pass | | 循环次数如果收外部数据控制,需要检验其合法性 | pass | | 禁止使用内存操作类危险函数,需要使用安全函数 | pass | | 谨慎使用不可重入函数 | pass | | 必须检查安全函数的返回值,并进行正确处理 | pass | | 禁止仅通过TokenType类型判断绕过权限校验 | pass | **TDD Result**: pass **XTS Result**: pass ### 是否已执行L0用例 - [ ] 已验证 - [ ] 不涉及。如不涉及,请写明理由 ### AI检视评分(使用本地代码检视skills扫描): See merge request: openharmony/ability_ability_runtime!20179 | 1 个月前 | |
set pid Signed-off-by: xhz-sz <xiehuandong@h-partners.com> AI[0%] Human Fixed[0%] Human[100%] AI Adopted[0%] | 1 个月前 | |
set pid Signed-off-by: xhz-sz <xiehuandong@h-partners.com> AI[0%] Human Fixed[0%] Human[100%] AI Adopted[0%] | 1 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
!19695 merge master0626 into master 代码优化 Created-by: dsz2025 Commit-by: duansizhao Merged-by: openharmony_ci Description: **IssueNo**: **Description**: **稳定性自检:** | 自检项 | 自检结果 | | ------------------------------------------------------------ | -------- | | 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 | | | 成员变量进行赋值或创建需要排查并发 | | | 谨慎在lambda表达式中使用引用捕获 | | | 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 | | | map\vector\list\set等stl模板类使用时需要排查并发 | | | 谨慎考虑加锁范围 | | | 在IPC通信中谨慎使用同步通信方式 | | | 禁止传递this指针至其他模块或线程(特别是eventhandler任务) | | | 禁止将外部传入的裸指针在内部直接构造智能指针 | | | 禁止多个独立创建的智能指针管理同一地址 | | | 禁止在析构函数中抛异步任务 | | | 禁止js对象在非js线程(例如在IPC线程)创建、使用或销毁 | | | 禁止在对外接口中未经判空直接使用外部传入的指针 | | | 禁止接口返回局部变量引用 | | | 禁止在信号函数中加锁 | | | 禁止在关键流程(SA启动、应用启动等主流程)执行耗时的操作 | | | 禁止将同一个cpp编译在不同的so中 | | **安全编码自检:** | 自检项 | 自检结果 | | -------------------------------------------------------------- | -------- | | 裸指针避免通过隐式转换构造为sptr | | | json对象在取值之前必须先判断类型,避免类型不匹配 | | | 序列化时必须对传入的数组大小进行校验,避免出现超大数组 | | | 避免使用未明确位宽的整型,选择使用int8_t、uint8_t等类型 | | | 外部传入的路径要做规范化校验,对路径中的.、..、../等特殊字符严格校验 | | | 指针变量、表示资源描述符的变量、bool变量必须赋初值 | | | readParcelable获取的对象使用前需要判空 | | | 分配和释放内存的函数需要成对出现 | | | 申请内存后异常退出前需要及时进行内存释放 | | | 内存申请前必须对内存大小进行合法性校验 | | | 内存分配后必须判断是否成功 | | | 禁止使用realloc、alloca函数 | | | 禁止打印文件路径、口令等敏感信息,如有需要,使用private修饰 | | | 禁止打印内存地址 | | | 整数之间运算时必须严格检查,确保不会出现溢出、反转、除0 | | | 禁止对有符号整数进行位操作符运算 | | | 禁止对指针进行逻辑或位运算 | | | 循环次数如果收外部数据控制,需要检验其合法性 | | | 禁止使用内存操作类危险函数,需要使用安全函数 | | | 谨慎使用不可重入函数 | | | 必须检查安全函数的返回值,并进行正确处理 | | | 禁止仅通过TokenType类型判断绕过权限校验 | | **TDD Result**: **XTS Result**: ### 是否已执行L0用例 - [ ] 已验证 - [ ] 不涉及。如不涉及,请写明理由 See merge request: openharmony/ability_ability_runtime!19695 | 3 个月前 | |
feat(rom): adopt optimize_config in 11 effective targets Based on empirical findings (libappms +10KB, ets_environment +0KB, cj_ability_ffi +0KB), exclude SA services, platformsdk innerapi, and small-size targets where optimize_config has no actual benefit. CJ extension (likely effective, non-platformsdk): - cj_form_extension, cj_embedded_ui_extension ANI wrappers (small but stable): - app_memory_optimizer_ani_kit, share_extension_ani, uri_permission_manager_ani_kit NAPI wrappers (small but stable): - autostartupcallback, appmemoryoptimizer_napi, insightintentprovider_napi, dialogrequest_napi, intent_client, scriptmanager_napi Excluded (no empirical benefit based on prior measurements): - SA services: libappms, libupms, libclimgr (shlib_type=sa overrides) - platformsdk innerapi: ets_environment, cli_tool_client, ability_deps_wrapper, perm_verification, ability_start_options, cj_extensionkit_native, ark_interop_helper_ffi - cj_ability_ffi (target cflags -O2 overrides optimize_config -Oz) Skipped (already adopted in other PRs by other contributors): - agentmgr, climanager_napi, functionmanager_napi Skipped (small size, not worth the change): - callee_napi Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 2 个月前 | |
cfi_0323 Co-Authored-By:Agent Signed-off-by: Luobniz21 <luoyicong@h-partners.com> Change-Id: Id04d2fede8db6afb669481142413bb43e5b562c7 | 6 个月前 | |
fix: AAFwk::Long 使用 int64_t 替换 long 修复32位平台数据截断 Co-Authored-By: Agent Signed-off-by: songkeyuan <songkeyuan@huawei.com> | 5 个月前 | |
perf(build): enable size_optimize_config on 130 SO targets Add a new services/common:size_optimize_config (same flags as optimize_config minus the explicit -flto=full, so the toolchain's global ThinLTO mode is preserved) and apply it to the 130 ohos_shared_library targets that previously shipped without any optimization config, so unreferenced functions/data are dropped at link time and ROM shrinks without overriding the global LTO policy. -Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so both optimize_config and size_optimize_config now add it only when current_os != "mac", keeping the darwin SDK host build (which links dylibs with -dead_strip) working. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 1 个月前 | |
madvise接口 Signed-off-by: zhangyuhang72 <zhangyuhang72@h-partners.com> 🤖 AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%] Change-Id: I2cf0c7f369e6ddbe3724e505fb993f08f55f2f5e | 3 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 3 个月前 | ||
| 1 个月前 | ||
| 6 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 8 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 5 个月前 | ||
| 3 个月前 | ||
| 6 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 3 个月前 | ||
| 1 个月前 | ||
| 1 年前 | ||
| 5 个月前 | ||
| 1 个月前 | ||
| 3 个月前 | ||
| 6 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 6 个月前 | ||
| 2 个月前 | ||
| 9 个月前 | ||
| 3 个月前 | ||
| 6 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 6 个月前 | ||
| 5 个月前 | ||
| 1 个月前 | ||
| 3 个月前 |