Skip to content

Commit 921afb7

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/src/Security/CWE/CWE-570/IncorrectAllocationErrorHandling.ql
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent 982f845 commit 921afb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-570/IncorrectAllocationErrorHandling.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ predicate noThrowInTryBlock(NewOrNewArrayExpr newExpr, BadAllocCatchBlock catchB
216216
predicate nullCheckInThrowingNew(NewOrNewArrayExpr newExpr, GuardCondition guard) {
217217
newExpr.getAllocator() instanceof ThrowingAllocator and
218218
// There can be many guard conditions that compares `newExpr` againgst 0.
219-
// For example, for `if(!p)` both `p` and `!p` is a guard condition. To not
219+
// For example, for `if(!p)` both `p` and `!p` are guard conditions. To not
220220
// produce duplicates results we pick the "first" guard condition according
221221
// to some arbitrary ordering (i.e., location information). This means `!p` is the
222222
// element that we use to construct the alert.

0 commit comments

Comments
 (0)