DCL60-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 ...
- DCL58-CPP: 不要修改标准命名空间,遵循标准库的完整性。 - DCL59-CPP: 避免在头文件中定义未命名的命名空间,以减少名字冲突。 - DCL60-CPP: 遵守一种定义规则,例如一个头文件对应一个实现文件。 4. 错误处理: - ERR50-CPP: 不要突然终止程序,应提供适当的错误处理机制。 - ERR51-CPP: 处理所有可能...
DCL60-CPP Obey the one-definition rule. EXP50-CPP Do not depend on the order of evaluation for side effects. EXP51-CPP Do not delete an array through a pointer of the incorrect type. EXP52-CPP Do not rely on side effects in unevaluated operands. EXP53-CPP Do not read uninitiali...
详细解释可以参考 [DCL21-CPP. Overloaded postfix increment and decrement operators should return a const object](https://www.securecoding.cert.org/confluence/display/cplusplus/DCL21-CPP.+Overloaded+postfix+increment+and+decrement+operators+should+return+a+const+object)。 ## prefix, postfix increment(...
cert-dcl59-cpp (redirects to google-build-namespaces) <cert-dcl59-cpp> cert-env33-c + cert-err34-c cert-err52-cpp cert-err58-cpp cert-err60-cpp @@ -75,7 +76,7 @@ misc-string-literal-with-embedded-nul misc-suspicious-missing-comma ...
cert-manager/cert-managerPublic NotificationsYou must be signed in to change notification settings Fork2.1k Star12.1k Files 2d4ee5c .github cmd acmesolver cainjector controller ctl cmd pkg LICENSE LICENSES go.mod go.sum main.go webhook deploy ...
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. ...
名称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...
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. ...