CWE-191

GPTKB entity

Statements (61)
Predicate Object
gptkbp:instance_of gptkb:Common_Weakness_Enumeration
gptkbp:addressed Best coding practices.
Coding standards.
gptkbp:affects Software applications.
gptkbp:associated_with Array indexing.
gptkbp:can_cause Data corruption.
gptkbp:can_detect Static code analysis tools.
gptkbp:can_lead_to Application crashes.
Security vulnerabilities.
gptkbp:category Implementation Errors
gptkbp:description An off-by-one error occurs when an iteration or calculation is off by one.
gptkbp:difficulty_levels Medium to High.
gptkbp:discovered_by Legacy code.
gptkbp:environmental_initiatives Testing and validation.
gptkbp:example Incorrect loop bounds.
Loop iterating from 0 to n instead of 0 to n-1.
gptkbp:has_weakness CWE-682.
https://www.w3.org/2000/01/rdf-schema#label CWE-191
gptkbp:impact Can lead to buffer overflows or incorrect calculations.
gptkbp:is_a Logic error.
gptkbp:is_analyzed_in Code review tools.
Dynamic analysis tools.
gptkbp:is_common_in Web applications.
C programming language.
Loop constructs.
gptkbp:is_critical_for Real-time systems.
gptkbp:is_documented_in Technical specifications.
Software engineering literature.
gptkbp:is_evaluated_by Security audits.
Code quality metrics.
gptkbp:is_found_in Embedded systems.
gptkbp:is_often_discussed_in Code reviews.
gptkbp:is_often_seen_in Boundary conditions.
Iterative algorithms.
gptkbp:is_recognized_by CWE-191.
CWE ID 191.
gptkbp:is_referenced_in https://cwe.mitre.org/data/definitions/191.html
gptkbp:is_related_to CWE-476.
CWE-682.
gptkbp:is_tested_for Integration tests.
Unit tests.
gptkbp:is_vulnerable_to Attackers.
gptkbp:name Off-by-One Error
gptkbp:notable_case Heartbleed.
gptkbp:prevention Code refactoring.
Code reviews and static analysis.
Careful boundary checking.
Defensive programming.
Peer programming.
gptkbp:related_cwe CWE-120.
gptkbp:related_to gptkb:CWE-129
gptkb:CWE-197
CWE-170
gptkbp:reported_by Bug tracking systems.
Security advisories.
gptkbp:scientific_classification Common coding errors.
Software vulnerabilities.
gptkbp:type Software weakness.
gptkbp:bfsParent gptkb:CWE-74
gptkb:CWE-130
gptkbp:bfsLayer 8