<span id="7ztzv"></span>
<sub id="7ztzv"></sub>

<span id="7ztzv"></span><form id="7ztzv"></form>

<span id="7ztzv"></span>

        <address id="7ztzv"></address>

            Poor Style: Variable Never Used

            ABSTRACT

            從未使用過該變量。

            EXPLANATION

            從未使用過該變量。有可能該變量只是一個殘留的無用代碼,但也可能該未使用的變量會指出一個 bug。

            示例:在以下代碼中,拷貝粘貼錯誤導致同一個循環迭代器 (i) 使用了兩次。而變量 j 卻從未使用。


            int i,j;

            for (i=0; i < outer; i++) {
            for (i=0; i < inner; i++) {
            ...

            REFERENCES

            [1] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3050 CAT II

            [2] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3050 CAT II

            [3] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 563


            Copyright 2013 Fortify Software - All rights reserved.
            (Generated from version 2013.1.1.0008 of the Fortify Secure Coding Rulepacks)
            desc.structural.cpp.poor_style_variable_never_used

            <span id="7ztzv"></span>
            <sub id="7ztzv"></sub>

            <span id="7ztzv"></span><form id="7ztzv"></form>

            <span id="7ztzv"></span>

                  <address id="7ztzv"></address>

                      亚洲欧美在线