Statements (24)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Common_Weakness_Enumeration
|
gptkbp:bfsLayer |
6
|
gptkbp:bfsParent |
gptkb:CWE-745
gptkb:CWE-746 |
gptkbp:affects |
Software applications.
|
gptkbp:associated_with |
CWE-704: Incorrect Type Conversion.
|
gptkbp:category |
Control Flow Issues
|
gptkbp:code |
while (true) { if (condition) break; }
|
gptkbp:created_by |
MITRE.
|
gptkbp:difficulty |
gptkb:High
|
gptkbp:example |
for (int i = 0; i < 10; i++) { while (true) {} }
|
gptkbp:first_published |
2021.
|
gptkbp:has_weakness |
CWE-835: Unreachable Code.
|
https://www.w3.org/2000/01/rdf-schema#label |
CWE-835
|
gptkbp:impact |
Can lead to application hang or crash.
|
gptkbp:investment |
Performance degradation.
|
gptkbp:is_described_as |
A loop that has an exit condition that can never be satisfied.
|
gptkbp:is_protected_by |
Code reviews and static analysis.
Ensure that loop exit conditions can be met. |
gptkbp:is_referenced_in |
https://cwe.mitre.org/data/definitions/835.html
|
gptkbp:is_vulnerable_to |
Exploitable in certain conditions.
|
gptkbp:name |
Loop with Unreachable Exit Condition
|
gptkbp:related_to |
CWE-672: Operation on a Resource after Expiration.
CWE-835: Infinite Loop |