Title: ARR36-C. Do not subtract or compare two pointers that do not refer to the same array  
Author: cjohns Apr 08, 2008
Last Changed by: Caden Milne Nov 07, 2024
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/1dYxBQ
Export As: Word · PDF  
Hierarchy
Parent Page
    Page: Rule 06. Arrays (ARR)
Outgoing Links
External Links (21)
    https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
    publications.gbdirect.co.uk/c_book/chapter5/pointers.html
    https://cwe.mitre.org/data/archive.html
    https://www.mathworks.com/help/bugfinder/ref/certcrulearr32…
    https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
    publications.gbdirect.co.uk/c_book/chapter5/pointer_express…
    https://taas.trust-in-soft.com/tsnippet/t/048e7cdf
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://cwe.mitre.org/data/index.html
    https://pvs-studio.com/en/docs/warnings/v736/
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
    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/c/Polyspace+Bug…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/display/c/Cppcheck
    cwe.mitre.org/data/definitions/469.html
    https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR54…
    https://pvs-studio.com/en/docs/warnings/v782/
SEI CERT C Coding Standard (29)     Page: RuleChecker_V
    Page: PVS-Studio_V
    Page: CC. Undefined Behavior
    Home page: SEI CERT C Coding Standard
    Page: BB. Definitions
    Page: Polyspace Bug Finder_V
    Page: Parasoft_V
    Page: AA. Bibliography
    Page: Axivion Bauhaus Suite
    Page: Cppcheck_V
    Page: TrustInSoft Analyzer_V
    Page: Coverity_V
    Page: LDRA
    Page: CodeSonar
    Page: LDRA_V
    Page: Klocwork
    Page: Astrée
    Page: Axivion Bauhaus Suite_V
    Page: Parasoft
    Page: CodeSonar_V
    Page: Helix QAC_V
    Page: Astrée_V
    Page: Helix QAC
    Page: Cppcheck Premium_V
    Page: Klocwork_V
    Page: RuleChecker
    Page: TrustInSoft Analyzer
    Page: Coverity
    Page: Cppcheck Premium