Update InsufficientControlFlowManagementWhenUsingBitOperations.ql

This commit is contained in:
ihsinme
2021-04-12 17:36:50 +03:00
committed by GitHub
parent 9b3ccade43
commit a43698802f

View File

@@ -61,8 +61,7 @@ class DangerousBitOperations extends BinaryBitwiseOperation {
/** Holds when the bit expression contains both arguments and a function call. */
predicate dangerousArgumentChecking() {
not this.getLeftOperand() instanceof Call and
globalValueNumber(this.getLeftOperand().getAChild*()) =
globalValueNumber(bfc.getAnArgument())
globalValueNumber(this.getLeftOperand().getAChild*()) = globalValueNumber(bfc.getAnArgument())
}
/** Holds when function calls are present in the bit expression. */