Update checking function return value item.
This commit is contained in:
parent
460ecac5ff
commit
3251cf0571
|
@ -27,7 +27,7 @@ Fixes #
|
||||||
|
|
||||||
- **Typical problems of security coding [[historical security coding cases reference]](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
- **Typical problems of security coding [[historical security coding cases reference]](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
||||||
- [ ] whether to verify the pointer is null/nullptr
|
- [ ] whether to verify the pointer is null/nullptr
|
||||||
- [ ] whether to verify the function's return value
|
- [ ] whether to verify the function's return value (It is forbidden to use void to mask the return values of security functions and self-developed functions. C++ STL functions can be masked if there is no problem)
|
||||||
- [ ] whether new/malloc memory is released correctly
|
- [ ] whether new/malloc memory is released correctly
|
||||||
- **Performance analysis (if a sub-item is involved, please outline the implementation idea or modification content)**
|
- **Performance analysis (if a sub-item is involved, please outline the implementation idea or modification content)**
|
||||||
- [ ] whether to modify hotspot ***function / algorithm / operation***
|
- [ ] whether to modify hotspot ***function / algorithm / operation***
|
||||||
|
|
|
@ -27,7 +27,7 @@ Fixes #
|
||||||
|
|
||||||
- **典型安全编码问题 [【违反安全编码案例】](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
- **典型安全编码问题 [【违反安全编码案例】](https://gitee.com/mindspore/community/blob/master/security/security_coding_violation_cases.md)**
|
||||||
- [ ] 是否进行空指针校验
|
- [ ] 是否进行空指针校验
|
||||||
- [ ] 是否进行返回值校验 (禁止使用void屏蔽函数返回值)
|
- [ ] 是否进行返回值校验 (禁止使用void屏蔽安全函数、自研函数返回值,C++标准库函数确认无问题可以屏蔽)
|
||||||
- [ ] 是否正确释放new/malloc申请的内存
|
- [ ] 是否正确释放new/malloc申请的内存
|
||||||
- **性能分析 (如果涉及某个子项,请概述设计思想/修改内容)**
|
- **性能分析 (如果涉及某个子项,请概述设计思想/修改内容)**
|
||||||
- [ ] 是否修改热点***函数 / 算法 / 算子***
|
- [ ] 是否修改热点***函数 / 算法 / 算子***
|
||||||
|
|
Loading…
Reference in New Issue