Skip to content

Commit 1510a1f

Browse files
Updated C6201
Added code analysis name
1 parent 2e55cc9 commit 1510a1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/code-quality/c6201.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ This warning indicates that an integer offset into the specified stack array exc
1717

1818
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.
1919

20+
Code analysis name: INDEX_EXCEEDS_MAX
21+
2022
## Example
2123

2224
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

Comments
 (0)