mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: Make PathCheck a BarrierGuard
This commit is contained in:
@@ -94,10 +94,12 @@ module PathNormalization {
|
||||
* A data-flow node that checks validates a path, for instance checking that it exists
|
||||
* or that it is safe to access.
|
||||
*/
|
||||
class PathCheck extends DataFlow::Node {
|
||||
class PathCheck extends DataFlow::BarrierGuard {
|
||||
PathCheck::Range range;
|
||||
|
||||
PathCheck() { this = range }
|
||||
|
||||
override predicate checks(ControlFlowNode node, boolean branch) { range.checks(node, branch) }
|
||||
}
|
||||
|
||||
/** Provides a class for modeling new path normalization APIs. */
|
||||
@@ -106,7 +108,7 @@ module PathCheck {
|
||||
* A data-flow node that checks validates a path, for instance checking that it exists
|
||||
* or that it is safe to access.
|
||||
*/
|
||||
abstract class Range extends DataFlow::Node { }
|
||||
abstract class Range extends DataFlow::BarrierGuard { }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user