Skip to content

Commit b0d5366

Browse files
committed
Python: exclude with definitions
from `assignment_definition`
1 parent 39dc697 commit b0d5366

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/ql/lib/semmle/python/essa/SsaDefinitions.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ module SsaSource {
2525
// since parameter will be considered a DefinitionNode, if it has a default value,
2626
// we need to exclude it here since it is already covered by parameter_definition
2727
// (and points-to was unhappy that it was included in both)
28-
not parameter_definition(v, defn)
28+
not parameter_definition(v, defn) and
29+
// similarly for with-definitions
30+
not with_definition(v, defn)
2931
}
3032

3133
/** Holds if `v` is defined by assignment of the captured exception. */

0 commit comments

Comments
 (0)