Skip to content

Commit 5c0c49d

Browse files
committed
Fix review comments.
1 parent dd37764 commit 5c0c49d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/code-quality/c26831.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["C26831"]
1111
1212
## Remarks
1313

14-
Checks for allocations that have potentially overflown values as their sizes. This check is targeted to find the following code pattern:
14+
Checks for an allocation whose size may be the result of a numerical overflow. This check is targeted to find the following code pattern:
1515

1616
```cpp
1717
void *SmallAlloc(int);
@@ -34,7 +34,7 @@ This warning is available in Visual Studio 2022 version 17.7 and later versions.
3434
3535
## Example
3636
37-
To fix the code example above, make sure `i+j` can't overflow. For example:
37+
To fix the previous code example, make sure `i+j` can't overflow. For example:
3838
3939
```cpp
4040
void *SmallAlloc(int);

docs/code-quality/c26832.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["C26832"]
1111
1212
## Remarks
1313

14-
Checks for allocations that have potentially overflown values as their sizes. This check is targeted to find the following code pattern:
14+
Checks for an allocation whose size may be the result of a numerical overflow. This check is targeted to find the following code pattern:
1515

1616
```cpp
1717
void* SmallAlloc(int);
@@ -35,7 +35,7 @@ Usually, checking for a reasonable bound on the allocation should work.
3535
This warning is available in Visual Studio 2022 version 17.7 and later versions.
3636
## Example
3737
38-
To fix the code example above, make sure `i+j` can't overflow. For example:
38+
To fix the previous code example, make sure `i+j` can't overflow. For example:
3939
4040
```cpp
4141
void *SmallAlloc(int);

docs/code-quality/c26833.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ helpviewer_keywords: ["C26833"]
1111
1212
## Remarks
1313

14-
Checks for allocations that have potentially overflown values as their sizes. This check is targeted to find the following code pattern:
14+
Checks for an allocation whose size may be the result of a numerical overflow. This check is targeted to find the following code pattern:
1515

1616
```cpp
1717
void* SmallAlloc(int);
@@ -37,7 +37,7 @@ Usually, checking for a reasonable bound on the allocation should work.
3737
This warning is available in Visual Studio 2022 version 17.7 and later versions.
3838
## Example
3939
40-
To fix the code example above, make sure `i+j` cannot overflow. For example:
40+
To fix the previous code example, make sure `i+j` cannot overflow. For example:
4141
4242
```cpp
4343
void* SmallAlloc(int);

0 commit comments

Comments
 (0)