@@ -940,17 +940,10 @@ private module Stdlib {
940
940
)
941
941
or
942
942
// Data injection
943
- exists (
944
- BinaryExprNode slash , DataFlow:: Node right , DataFlow:: Node left , DataFlow:: TypeTracker t2
945
- |
943
+ exists ( BinaryExprNode slash , DataFlow:: Node pathOperand , DataFlow:: TypeTracker t2 |
946
944
slash .getOp ( ) instanceof Div and
947
- right .asCfgNode ( ) = slash .getRight ( ) and
948
- left .asCfgNode ( ) = slash .getLeft ( ) and
949
- (
950
- left .getALocalSource ( ) = pathlibPath ( t2 )
951
- or
952
- right .getALocalSource ( ) = pathlibPath ( t2 )
953
- ) and
945
+ pathOperand .asCfgNode ( ) = slash .getAnOperand ( ) and
946
+ pathOperand .getALocalSource ( ) = pathlibPath ( t2 ) and
954
947
t2 .end ( )
955
948
|
956
949
t .start ( ) and
@@ -1021,23 +1014,23 @@ private module Stdlib {
1021
1014
nodeTo .getALocalSource ( ) = pathlibPath ( ) and
1022
1015
(
1023
1016
// Special handling of the `/` operator
1024
- exists ( BinaryExprNode slash , DataFlow:: Node path_operand , DataFlow:: Node data_operand |
1017
+ exists ( BinaryExprNode slash , DataFlow:: Node pathOperand , DataFlow:: Node dataOperand |
1025
1018
slash .getOp ( ) instanceof Div and
1026
1019
(
1027
- path_operand .asCfgNode ( ) = slash .getLeft ( ) and
1028
- data_operand .asCfgNode ( ) = slash .getRight ( )
1020
+ pathOperand .asCfgNode ( ) = slash .getLeft ( ) and
1021
+ dataOperand .asCfgNode ( ) = slash .getRight ( )
1029
1022
or
1030
- path_operand .asCfgNode ( ) = slash .getRight ( ) and
1031
- data_operand .asCfgNode ( ) = slash .getLeft ( )
1023
+ pathOperand .asCfgNode ( ) = slash .getRight ( ) and
1024
+ dataOperand .asCfgNode ( ) = slash .getLeft ( )
1032
1025
) and
1033
- path_operand .getALocalSource ( ) = pathlibPath ( )
1026
+ pathOperand .getALocalSource ( ) = pathlibPath ( )
1034
1027
|
1035
1028
nodeTo .asCfgNode ( ) = slash and
1036
1029
nodeFrom in [
1037
1030
// type-preserving call
1038
- path_operand ,
1031
+ pathOperand ,
1039
1032
// data injection
1040
- data_operand
1033
+ dataOperand
1041
1034
]
1042
1035
)
1043
1036
or
0 commit comments