Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67ec5d3

Browse files
committed
JS: Stop caching AdditionalFlowStep
1 parent adaf323 commit 67ec5d3

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

javascript/ql/src/semmle/javascript/dataflow/Configuration.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,19 +551,16 @@ abstract class LabeledBarrierGuardNode extends BarrierGuardNode {
551551
* of the standard library. Override `Configuration::isAdditionalFlowStep`
552552
* for analysis-specific flow steps.
553553
*/
554-
cached
555554
abstract class AdditionalFlowStep extends DataFlow::Node {
556555
/**
557556
* Holds if `pred` → `succ` should be considered a data flow edge.
558557
*/
559-
cached
560558
predicate step(DataFlow::Node pred, DataFlow::Node succ) { none() }
561559

562560
/**
563561
* Holds if `pred` → `succ` should be considered a data flow edge
564562
* transforming values with label `predlbl` to have label `succlbl`.
565563
*/
566-
cached
567564
predicate step(
568565
DataFlow::Node pred, DataFlow::Node succ, DataFlow::FlowLabel predlbl,
569566
DataFlow::FlowLabel succlbl
@@ -577,31 +574,27 @@ abstract class AdditionalFlowStep extends DataFlow::Node {
577574
* Holds if `pred` should be stored in the object `succ` under the property `prop`.
578575
* The object `succ` must be a `DataFlow::SourceNode` for the object wherein the value is stored.
579576
*/
580-
cached
581577
predicate storeStep(DataFlow::Node pred, DataFlow::SourceNode succ, string prop) { none() }
582578

583579
/**
584580
* EXPERIMENTAL. This API may change in the future.
585581
*
586582
* Holds if the property `prop` of the object `pred` should be loaded into `succ`.
587583
*/
588-
cached
589584
predicate loadStep(DataFlow::Node pred, DataFlow::Node succ, string prop) { none() }
590585

591586
/**
592587
* EXPERIMENTAL. This API may change in the future.
593588
*
594589
* Holds if the property `prop` should be copied from the object `pred` to the object `succ`.
595590
*/
596-
cached
597591
predicate loadStoreStep(DataFlow::Node pred, DataFlow::Node succ, string prop) { none() }
598592

599593
/**
600594
* EXPERIMENTAL. This API may change in the future.
601595
*
602596
* Holds if the property `loadProp` should be copied from the object `pred` to the property `storeProp` of object `succ`.
603597
*/
604-
cached
605598
predicate loadStoreStep(
606599
DataFlow::Node pred, DataFlow::Node succ, string loadProp, string storeProp
607600
) {

0 commit comments

Comments
 (0)