mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: address review comments
This commit is contained in:
@@ -311,12 +311,17 @@ abstract class BarrierGuardNode extends DataFlow::Node {
|
||||
abstract predicate blocks(boolean outcome, Expr e);
|
||||
|
||||
/**
|
||||
* Holds if this barrier guard blocks all labels.
|
||||
* Holds if this barrier guard should block all labels.
|
||||
*
|
||||
* To block specific labels only, subclasses should override this with `none()` and
|
||||
* also override `blocksSpecificLabel`.
|
||||
*/
|
||||
predicate blocksAllLabels() { any() }
|
||||
|
||||
/**
|
||||
* Holds if this barrier guard only blocks specific labels, and `label` is one of them.
|
||||
*
|
||||
* Subclasses that override this predicate should also override `blocksAllLabels`.
|
||||
*/
|
||||
predicate blocksSpecificLabel(FlowLabel label) { none() }
|
||||
}
|
||||
|
||||
@@ -22,11 +22,11 @@ module TaintedObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the flow label representing a deeply tainted objects.
|
||||
* Gets the flow label representing a deeply tainted object.
|
||||
*
|
||||
* A "tainted object" is an array or object whose values are all assumed to be tainted as well.
|
||||
* A "tainted object" is an array or object whose properties values are all assumed to be tainted as well.
|
||||
*
|
||||
* Note that the presence of the `object-taint` label generally implies the presence of the `taint` label as well.
|
||||
* Note that the presence of the this label generally implies the presence of the `taint` label as well.
|
||||
*/
|
||||
FlowLabel label() { result instanceof TaintedObjectLabel }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user