已关闭
[Bug]: cj_settings_ffi BUILD.gn 缺少 bounds_checking_function:libsec_shared 依赖 #933
ding_hong_4创建于 7月23日关闭于 7月31日
7月23日 添加了label:bug
openharmony_ci
7月23日 评论:
7月23日 评论:
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@liangweiwei](https://gitcode.com/liangweiwei) [@wuminnan](https://gitcode.com/wuminnan) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.


7月23日 添加了label:waiting_for_assign
7月24日 关联了pull request:fix: add bounds_checking_function:libsec_shared to cj_settings_ffi external_deps
7月24日 关联了pull request:fix: add bounds_checking_function:libsec_shared to cj_settings_ffi external_deps
7月31日 关闭了 issue
7月31日 issue状态由 待办的 改变为 已完成
感谢对仓颉社区的支持与关注,欢迎反馈缺陷。 | Thanks for your support and attention to the community. We welcome feedback on any issues.
发生了什么问题? | Describe the issue that occurred.
settings:cj_settings_ffi库的源文件中#include "securec.h"/"securectype.h"并使用了其中的安全函数(如 memcpy_s 等),但其对应 BUILD.gn 中ohos_shared_library("cj_settings_ffi")块的external_deps数组未声明bounds_checking_function:libsec_shared依赖,可能导致链接阶段找不到安全函数符号或构建异常。The source files of the
settings:cj_settings_ffilibrary includesecurec.h/securectype.hand use secure functions (e.g. memcpy_s), but theexternal_depsarray of theohos_shared_library("cj_settings_ffi")block in its BUILD.gn does not declare thebounds_checking_function:libsec_shareddependency, which may cause unresolved symbols at link time or build failures.期望行为是什么? | What is the expected behavior?
在
cj/settings/BUILD.gn的ohos_shared_library("cj_settings_ffi")块的external_deps数组中补齐"bounds_checking_function:libsec_shared"。同时在bundle.json的component.deps.components中补齐bounds_checking_function。Add
"bounds_checking_function:libsec_shared"to theexternal_depsarray of theohos_shared_library("cj_settings_ffi")block incj/settings/BUILD.gn, and addbounds_checking_functiontocomponent.deps.componentsinbundle.json.如何复现该缺陷? | How to reproduce the bug?
cj/settings/BUILD.gn中cj_settings_ffi目标的external_deps,确认其中不包含bounds_checking_function:libsec_shared。#include "securec.h"或#include "securectype.h"(行号见下方):cj/settings/src/cj_settings.cppcj_settings_ffi目标,观察是否出现安全函数符号未定义等问题。其他补充信息 | Additional information
涉及文件:
cj/settings/BUILD.gn(ohos_shared_library("cj_settings_ffi")的external_deps)bundle.json(component.deps.components)cj/settings/src/cj_settings.cpp(第 23 行:#include "securec.h")cjc版本信息 | cjc version information
N/A
分支版本信息 | Branch version information
[x] main(迭代版本)
[ ] release/1.1(STS版本)
[ ] release/1.0(LTS版本)