We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0ab91 commit 6912cafCopy full SHA for 6912caf
cpp/ql/src/semmle/code/cpp/security/TaintTracking.qll
@@ -330,13 +330,7 @@ GlobalOrNamespaceVariable globalVarFromId(string id) {
330
* A variable that has any kind of upper-bound check anywhere in the program
331
*/
332
private predicate hasUpperBoundsCheck(Variable var) {
333
- exists(BinaryOperation oper, VariableAccess access |
334
- (
335
- oper.getOperator() = "<" or
336
- oper.getOperator() = "<=" or
337
- oper.getOperator() = ">" or
338
- oper.getOperator() = ">="
339
- ) and
+ exists(RelationalOperation oper, VariableAccess access |
340
oper.getLeftOperand() = access and
341
access.getTarget() = var and
342
// Comparing to 0 is not an upper bound check
0 commit comments