Skip to content

Commit 9b4884d

Browse files
committed
C++: Backticks.
1 parent 200d7ed commit 9b4884d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cpp/ql/src/Security/CWE/CWE-468/IncorrectPointerScaling.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ where
2121
destBase = baseType(destType) and
2222
destBase.getSize() != sourceBase.getSize() and
2323
not dest.isInMacroExpansion() and
24-
// If the source type is a char* or void* then don't
24+
// If the source type is a `char*` or `void*` then don't
2525
// produce a result, because it is likely to be a false
2626
// positive.
2727
not sourceBase instanceof CharType and

cpp/ql/src/Security/CWE/CWE-468/IncorrectPointerScalingChar.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ where
2121
destBase = baseType(destType) and
2222
destBase.getSize() != sourceBase.getSize() and
2323
not dest.isInMacroExpansion() and
24-
// If the source type is a char* or void* then don't
24+
// If the source type is a `char*` or `void*` then don't
2525
// produce a result, because it is likely to be a false
2626
// positive.
2727
not sourceBase instanceof CharType and

cpp/ql/src/Security/CWE/CWE-468/SuspiciousAddWithSizeof.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private predicate isCharSzPtrExpr(Expr e) {
2424
from Expr sizeofExpr, Expr e
2525
where
2626
// If we see an addWithSizeof then we expect the type of
27-
// the pointer expression to be char* or void*. Otherwise it
27+
// the pointer expression to be `char*` or `void*`. Otherwise it
2828
// is probably a mistake.
2929
addWithSizeof(e, sizeofExpr, _) and not isCharSzPtrExpr(e)
3030
select sizeofExpr,

0 commit comments

Comments
 (0)