Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-8978

[CPPCHECK] Array index used before limits check.

    XMLWordPrintable

    Details

      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

            Activity

              People

              • Assignee:
                bug zilla Bug Zilla
                Reporter:
                Olim98 Olim98
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: