Title: EXP45-C. Do not perform assignments in selection statements  
Author: Robert Seacord (Manager) Jan 21, 2010
Last Changed by: Anirban Gangopadhyay Aug 30, 2019
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 (24)
    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://www.securecoding.cert.org/confluence/pages/viewpage…
    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://support.roguewave.com/documentation/klocwork/en/cur…
    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://cwe.mitre.org/data/index.html481.html
    cwe.mitre.org/
    https://www.viva64.com/en/w/v559/
    https://www.viva64.com/en/w/v633/
    https://www.viva64.com/en/w/v699/
SEI CERT C++ Coding Standard (1)     Page: PRQA QA-C++_V
SEI CERT C Coding Standard (31)     Page: EXP30-C. Do not depend on the order of evaluation for side effects
    Page: Klocwork_V
    Page: PRQA QA-C_v
    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: 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
    Home page: SEI CERT C Coding Standard
    Page: AA. Bibliography
    Page: Clang
    Page: PRQA QA-C
    Page: ECLAIR_V
    Page: BB. Definitions