You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/c6201.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ This warning indicates that an integer offset into the specified stack array exc
17
17
18
18
One common cause of this defect is using an array's size as an index into the array. Because C/C++ array indexing is zero-based, the maximum legal index into an array is one less than the number of array elements.
19
19
20
+
Code analysis name: INDEX_EXCEEDS_MAX
21
+
20
22
## Example
21
23
22
24
The following code generates this warning. This issue stems from the **`for`** loop exceedeeding the index range, attempting to access the 14th index when the 13th is the last:
0 commit comments