...
Wiki Markup |
---|
This noncompliant code example demonstrates how dead code can be introduced into a program \[[Fortify 06|AA. C References#Fortify 06]\]. The second conditional statement, {{if (s)}}, will never evaluate true because it requires that {{s}} not be assigned {{NULL}}, and the only path where {{s}} can be assigned a non\-{{NULL}} value ends with a return statement. |
...
Wiki Markup |
---|
\[[Fortify 06|AA. C References#Fortify 06]\] Code Quality, "Dead Code" \[[ISO/IEC PDTR 24772|AA. C References#ISO/IEC PDTR 24772]\] "BRS Leveraging human experience," "BVQ Unspecified Functionality," and "XYQ Dead and Deactivated Code" \[[MISRA 04|AA. C References#MISRA 04]\] Rule 2.4 \[[MITRE 07|AA. C References#MITRE 07]\] [CWE ID 561|http://cwe.mitre.org/data/definitions/561.html], "Dead Code" |
...