Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
Description
Defensive programming: The variable used as an array index before it is checked that is within limits. This can mean that the array might be accessed out of bounds. Reorder conditions such as '(a[i] && i < 10)' to '(i < 10 && a[i])'. That way the array will not be accessed if the index is out of limits.
Attachments
Issue Links
- relates to
-
CORE-7292 cppcheck checks of ReactOS code
- Closed
-
CORE-13098 Upgrade lwIP to 2.0.3 or even newer, from 1.4.1
- Resolved