Star
1131
Fork
749
代码
介绍
代码
Issues
33
Pull Requests
59
流水线
Actions
项目讨论
Wiki
项目成员
125
分析
项目设置
Star
1131
Fork
749
已关闭
[Bug]: MEM-NULL-DEREF (空指针解引用)
#202
zhangqiang
创建于
7月3日
关闭于
7月13日
zhangqiang
7月3日
创建
7月3日
创建
Checklist
1. I have searched existing issues. (
https://gitcode.com/openHiTLS/openhitls/issues
)
2. The bug exists in the latest version.
3. I understand that issues without environment info and minimal reproducible example may be closed.
Bug Description
`
位置
: crypto/bn/src/bn_utils.c:235 (BN_BN2Array)
描述
: BN_BN2Array(const BN_BigNum *src, BN_UINT *dst, uint32_t size) 在 line 235 直接访问 src->size, 未检查 src==NULL。传入 NULL src 会导致 segfault。
检测方式
: 覆盖率补测触发 (测试 BN_BN2Array(NULL, arr, 16) 时 segfault)
用例
:SDV_CRYPTO_BN_UTILS_CONV_API_TC001
`
Environment Information
software
Version Information
latest
Additional Information
保存
取消
D
dumb
成员
7月13日
关联了pull request:fix(kdf): pass non-NULL out-param in CRYPT_EAL_KdfIsValidAlgId
7月13日
关联了pull request:fix(kdf): pass non-NULL out-param in CRYPT_EAL_KdfIsValidAlgId
D
dumb
成员
7月13日
关闭了 issue
7月13日
关闭了 issue
D
dumb
成员
3 天前
关联了看板:openHiTLS Project
3 天前
关联了看板:openHiTLS Project
D
dumb
成员
3 天前
移除了看板:openHiTLS Project
3 天前
移除了看板:openHiTLS Project
Checklist
Bug Description
`
`
Environment Information
software
Version Information
latest
Additional Information