Skip to content

Commit 59402eb

Browse files
authored
Merge pull request github#12462 from MathiasVP/disable-std-order-in-fwd-flow-stage-1
DataFlow: Disable standard order in `Stage1::fwdFlow`
2 parents eadc605 + 1f77f77 commit 59402eb

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

go/ql/lib/semmle/go/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

java/ql/lib/semmle/code/java/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

swift/ql/lib/codeql/swift/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ module Impl<FullStateConfigSig Config> {
456456
* The Boolean `cc` records whether the node is reached through an
457457
* argument in a call.
458458
*/
459+
pragma[assume_small_delta]
459460
private predicate fwdFlow(NodeEx node, Cc cc) {
460461
sourceNode(node, _) and
461462
if hasSourceCallCtx() then cc = true else cc = false

0 commit comments

Comments
 (0)