DCL51-CPP1 This software has been created by MathWorks incorporating portions of: the “SEI CERT-C Website,” © 2017 Carnegie Mellon University, the SEI CERT-C++ Web site © 2017 Carnegie Mellon University, ”SEI CERT C Coding Standard – Rules for Developing safe, Reliable and Secure ...
- DCL51-CPP: 不要声明或定义保留的标识符,以免冲突。 - DCL52-CPP: 不要在引用类型前使用const或volatile,以防止意外行为。 - DCL53-CPP: 避免编写语法上不明确的声明,保持代码清晰。 - DCL54-CPP: 为分配和释放函数提供成对的重载,确保内存管理的一致性。 - DCL55-CPP: 跨信任边界传递类对象时,防止信...
DCL51-CPP Do not declare or define a reserved identifier. DCL52-CPP Never qualify a reference type with const or volatile. DCL53-CPP Do not write syntactically ambiguous declarations. DCL54-CPP Overload allocation and deallocation functions as a pair in the same scope. DCL55-CPP Avo...
EXP55-CPP 不要通过cv-unqualified的类型来访问一个cv-qualified类型的对象 严重程度:中 C++标准对其 [dcl.type.cv]进行了如下描述: Except that any class member declared mutable can be modified, any attempt to modify a const object during its lifetime results in undefined behavior. 类似的还有: What...
名称CON50-CPPCON51-CPPCON52-CPPCON53-CPPCON54-CPPCON55-CPPCON56-CPPCTR50-CPPCTR51-CPPCTR52-CPPCTR53-CPPCTR54-CPPCTR55-CPPCTR56-CPPCTR57-CPPCTR58-CPPDCL50-CPPDCL51-CPPDCL52-CPPDCL53-CPPDCL54-CPPDCL55-CPPDCL56-CPPDCL57-CPPDCL58-CPPDCL59-CPPDCL60-CPPERR50-CPPERR51-CPPERR52-CPP ERR...
DCL51-CPP1 This software has been created by MathWorks incorporating portions of: the “SEI CERT-C Website,” © 2017 Carnegie Mellon University, the SEI CERT-C++ Web site © 2017 Carnegie Mellon University, ”SEI CERT C Coding Standard – Rules for Developing safe, Reliable and Secure ...
DCL51-CPP1 This software has been created by MathWorks incorporating portions of: the “SEI CERT-C Website,” © 2017 Carnegie Mellon University, the SEI CERT-C++ Web site © 2017 Carnegie Mellon University, ”SEI CERT C Coding Standard – Rules for Developing safe, Reliable and Secure ...
cert-dcl59-cpp.md cert-env33-c.md cert-err09-cpp.md cert-err34-c.md cert-err52-cpp.md cert-err58-cpp.md cert-err60-cpp.md cert-err61-cpp.md cert-fio38-c.md cert-flp30-c.md cert-msc30-c.md cert-msc50-cpp.md cert-oop11-cpp.md Google README.md ...
ctl cmd pkg LICENSE LICENSES go.mod go.sum main.go webhook deploy design docs gcb hack internal logo make pkg test tools .bazelignore .bazelrc .gitignore .krew.yaml .trivyignore CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE LICENSES Makefile ...
EXP53-CPP 不要读取未初始化的内存 严重等级: 高 局部变量,自动变量在初始化之前读取的话,它们的值都是无法预测的(随机值)。C++标准[dcl.init]有如下声明: If no initializer is specified for an object, the object is default-initialized. When storage for an object with automatic or dynamic storage du...