mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Update python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -422,6 +422,8 @@ module VariableCapture {
|
||||
Function f;
|
||||
|
||||
CapturedVariable() {
|
||||
// note: captured variables originating on module scope is currently
|
||||
// covered by global variable handling.
|
||||
this.getScope() = f and
|
||||
this.getAnAccess().getScope() != f
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user