Title: EXP45-C. Do not perform assignments in selection statements  
Author: Robert Seacord (Manager) Jan 21, 2010
Last Changed by: Swasti Shrivastava Oct 10, 2024
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/ZNYxBQ
Export As: Word · PDF  
Hierarchy
Parent Page
    Page: Rule 03. Expressions (EXP)
Outgoing Links
External Links (22)
    https://wiki.sei.cmu.edu/confluence/display/cplusplus/EXP19…
    https://wiki.sei.cmu.edu/confluence/display/java/EXP51-J.+D…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    cwe.mitre.org/data/definitions/480.html
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/display/c/PVS-Studio
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/display/java/SEI+CERT+O…
    https://cwe.mitre.org/data/index.html
    https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
    https://www.mathworks.com/help/bugfinder/ref/certcruleexp45…
    https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
    https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://www.sonarsource.com/products/codeanalyzers/sonarcfa…
    https://pvs-studio.com/en/docs/warnings/v559/
    https://cwe.mitre.org/data/index.html481.html
    cwe.mitre.org/
    https://pvs-studio.com/en/docs/warnings/v699/
    https://pvs-studio.com/en/docs/warnings/v633/
SEI CERT C Coding Standard (35)     Page: EXP30-C. Do not depend on the order of evaluation for side effects
    Page: Klocwork_V
    Page: PC-lint Plus
    Page: Axivion Bauhaus Suite
    Page: Astrée_V
    Page: CodeSonar
    Page: CodeSonar_V
    Page: Axivion Bauhaus Suite_V
    Page: Polyspace Bug Finder_V
    Page: Parasoft
    Page: LDRA
    Page: Polyspace Bug Finder
    Page: Klocwork
    Page: LDRA_V
    Page: ECLAIR
    Page: GCC
    Page: PVS-Studio_V
    Page: Helix QAC
    Page: GCC_V
    Page: Clang_V
    Page: Astrée
    Page: RuleChecker
    Page: RuleChecker_V
    Page: Parasoft_V
    Page: MSC00-C. Compile cleanly at high warning levels
    Page: Rose
    Page: Cppcheck Premium
    Home page: SEI CERT C Coding Standard
    Page: AA. Bibliography
    Page: Clang
    Page: Cppcheck Premium_V
    Page: Helix QAC_V
    Page: PC-lint Plus_V
    Page: ECLAIR_V
    Page: BB. Definitions