Title: EXP46-C. Do not use a bitwise operator with a Boolean-like operand  
Author: Robert Seacord (Manager) Jan 21, 2010
Last Changed by: David Svoboda Jul 13, 2023
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/WNYxBQ
Export As: Word · PDF  
Hierarchy
Parent Page
    Page: Rule 03. Expressions (EXP)
Outgoing Links
External Links (15)
    cwe.mitre.org/data/definitions/480.html
    https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
    cwe.mitre.org/
    https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
    https://wiki.sei.cmu.edu/confluence/display/c/Polyspace+Bug…
    https://wiki.sei.cmu.edu/confluence/display/c/PVS-Studio
    https://cwe.mitre.org/data/index.html569.html
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://www.mathworks.com/help/bugfinder/ref/certcruleexp46…
    https://cwe.mitre.org/data/index.html
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://pvs-studio.com/en/docs/warnings/v564/
    https://pvs-studio.com/en/docs/warnings/v1015/
SEI CERT C Coding Standard (26)     Page: Coverity_V
    Home page: SEI CERT C Coding Standard
    Page: LDRA
    Page: Astrée_V
    Page: CodeSonar_V
    Page: RuleChecker_V
    Page: Axivion Bauhaus Suite_V
    Page: Cppcheck_V
    Page: PC-lint Plus
    Page: PVS-Studio_V
    Page: Axivion Bauhaus Suite
    Page: Klocwork_V
    Page: Parasoft_V
    Page: RuleChecker
    Page: Helix QAC
    Page: CodeSonar
    Page: AA. Bibliography
    Page: Polyspace Bug Finder_V
    Page: Helix QAC_V
    Page: PC-lint Plus_V
    Page: Coverity
    Page: Astrée
    Page: Parasoft
    Page: Cppcheck
    Page: Klocwork
    Page: LDRA_V