Skip to content

Commit 375a601

Browse files
authored
Update OperatorPrecedenceLogicErrorWhenUseBitwiseOrLogicalOperations.ql
1 parent 14b4e08 commit 375a601

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-783/OperatorPrecedenceLogicErrorWhenUseBitwiseOrLogicalOperations.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ predicate isRealRange(Expr exp) {
109109
}
110110

111111
/** Holds if expressions are of different size or range */
112+
pragma[inline]
112113
predicate isDifferentSize(Expr exp1, Expr exp2, Expr exp3) {
113114
exp1.getType().getSize() = exp2.getType().getSize() and
114115
exp1.getType().getSize() != exp3.getType().getSize()
@@ -127,6 +128,7 @@ predicate isDifferentSize(Expr exp1, Expr exp2, Expr exp3) {
127128
}
128129

129130
/** Holds if it is possible to get different values of the expression */
131+
pragma[inline]
130132
predicate isDifferentResults(
131133
Expr exp1, Expr exp2, Expr exp3, BinaryBitwiseOperation op1, BinaryBitwiseOperation op2
132134
) {

0 commit comments

Comments
 (0)