mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Fix bad join order in comparesFirstCharacter
This commit is contained in:
@@ -110,8 +110,8 @@ module StringOps {
|
||||
DataFlow::EqualityTestNode eq, DataFlow::Node str, DataFlow::Node rhs
|
||||
) {
|
||||
exists(DataFlow::ElementReadNode read |
|
||||
eq.hasOperands(globalValueNumber(read).getANode(), rhs) and
|
||||
str = read.getBase() and
|
||||
eq.hasOperands(globalValueNumber(pragma[only_bind_out](read)).getANode(), rhs) and
|
||||
str = pragma[only_bind_out](read).getBase() and
|
||||
str.getType().getUnderlyingType() instanceof StringType and
|
||||
read.getIndex().getIntValue() = 0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user