Comparing instead of Assigning |
Weakness ID: 482 (Weakness Variant) | Status: Draft |
Description Summary
Extended Description
In many languages, the compare statement is very close in appearance to the assignment statement; they are often confused.
Scope | Effect |
---|---|
Availability | The assignment will not take place, which should cause obvious program execution problems. |
Example 1
Pre-design: Through Build: Many IDEs and static analysis products will detect this problem. |
Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
---|---|---|---|---|
ChildOf | ![]() | 480 | Use of Incorrect Operator | Development Concepts699 Research Concepts (primary)1000 |
ChildOf | ![]() | 569 | Expression Issues | Development Concepts (primary)699 |
ChildOf | ![]() | 747 | CERT C Secure Coding Section 49 - Miscellaneous (MSC) | Weaknesses Addressed by the CERT C Secure Coding Standard (primary)734 |
Mapped Taxonomy Name | Node ID | Fit | Mapped Node Name |
---|---|---|---|
CLASP | Comparing instead of assigning | ||
CERT C Secure Coding | MSC02-C | Avoid errors of omission |
Submissions | ||||
---|---|---|---|---|
Submission Date | Submitter | Organization | Source | |
CLASP | Externally Mined | |||
Modifications | ||||
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Eric Dalci | Cigital | External | |
updated Time of Introduction | ||||
2008-09-08 | CWE Content Team | MITRE | Internal | |
updated Applicable Platforms, Description, Relationships, Other Notes, Taxonomy Mappings | ||||
2008-11-24 | CWE Content Team | MITRE | Internal | |
updated Relationships, Taxonomy Mappings | ||||
2009-07-27 | CWE Content Team | MITRE | Internal | |
updated Common Consequences, Modes of Introduction | ||||
2009-10-29 | CWE Content Team | MITRE | Internal | |
updated Other Notes |
Security-Database help your corporation foresee and avoid any security risks that may impact your IT infrastructure and business applications.