Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e946f8

Browse files
committed
wip
1 parenteb48820 commit1e946f8

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

‎csharp/ql/test/library-tests/dataflow/library/FlowSummariesFiltered.ql‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class IncludeFilteredSummarizedCallable extends IncludeSummarizedCallable {
2121
overridepredicaterelevantSummary(
2222
SummaryComponentStackinput,SummaryComponentStackoutput,booleanpreservesValue,Provenancep
2323
){
24-
this.propagatesFlow(input,output,preservesValue,p, _)and
24+
this.propagatesFlow(input,output,preservesValue,p, _, _)and
2525
notexists(IncludeSummarizedCallablersc|
2626
isBaseCallableOrPrototype(rsc)and
27-
rsc.propagatesFlow(input,output,preservesValue, _, _)and
27+
rsc.propagatesFlow(input,output,preservesValue, _, _, _)and
2828
this.(UnboundCallable).overridesOrImplementsUnbound(rsc)
2929
)
3030
}

‎javascript/ql/lib/semmle/javascript/dataflow/FlowSummary.qll‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ private import semmle.javascript.dataflow.internal.FlowSummaryPrivate
88
privateimport semmle.javascript.dataflow.internal.sharedlib.DataFlowImplCommonas DataFlowImplCommon
99
privateimport semmle.javascript.dataflow.internal.DataFlowPrivate
1010

11+
classProvenance= Impl::Public::Provenance;
12+
1113
/**
1214
* A model for a function that can propagate data flow.
1315
*
@@ -67,9 +69,13 @@ abstract class SummarizedCallable extends LibraryCallable, Impl::Public::Summari
6769
predicatepropagatesFlow(stringinput,stringoutput,booleanpreservesValue){none()}
6870

6971
overridepredicatepropagatesFlow(
70-
stringinput,stringoutput,booleanpreservesValue,stringmodel
72+
stringinput,stringoutput,booleanpreservesValue,Provenanceprovenance,booleanisExact,
73+
stringmodel
7174
){
72-
this.propagatesFlow(input,output,preservesValue)andmodel=this
75+
this.propagatesFlow(input,output,preservesValue)and
76+
provenance="manual"and
77+
model=thisand
78+
isExact=true
7379
}
7480

7581
/**

‎javascript/ql/lib/semmle/javascript/dataflow/internal/sharedlib/SummaryTypeTracker.qll‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private module SummaryFlowConfig implements Input {
6969
predicatepropagatesFlow(
7070
SummaryComponentStackinput,SummaryComponentStackoutput,booleanpreservesValue
7171
){
72-
super.propagatesFlow(input,output,preservesValue, _)
72+
super.propagatesFlow(input,output,preservesValue, _, _, _)
7373
}
7474

7575
stringtoString(){result=super.toString()}

‎javascript/ql/lib/semmle/javascript/frameworks/data/ModelsAsData.qll‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ private class SummarizedCallableFromModel extends DataFlow::SummarizedCallable {
6262
override DataFlow::InvokeNodegetACall(){ ModelOutput::resolvedSummaryBase(type,path,result)}
6363

6464
overridepredicatepropagatesFlow(
65-
stringinput,stringoutput,booleanpreservesValue,stringmodel
65+
stringinput,stringoutput,booleanpreservesValue, DataFlow::Provenanceprovenance,
66+
booleanisExact,stringmodel
6667
){
67-
exists(stringkind| ModelOutput::relevantSummaryModel(type,path,input,output,kind,model)|
68+
exists(stringkind|
69+
ModelOutput::relevantSummaryModel(type,path,input,output,kind,model)and
70+
provenance="manual"and
71+
isExact=true
72+
|
6873
kind="value"and
6974
preservesValue=true
7075
or

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp