Skip to content

Commit 5026a55

Browse files
author
Max Schaefer
committed
JavaScript: Fix a Cartesian product.
1 parent d230921 commit 5026a55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

javascript/ql/src/semmle/javascript/frameworks/Electron.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ module Electron {
256256
private class IPCAdditionalFlowStep extends DataFlow::AdditionalFlowStep {
257257
IPCAdditionalFlowStep() { ipcFlowStep(this, _) }
258258

259-
override predicate step(DataFlow::Node pred, DataFlow::Node succ) { ipcFlowStep(pred, succ) }
259+
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
260+
pred = this and
261+
ipcFlowStep(pred, succ)
262+
}
260263
}
261264
}
262265

0 commit comments

Comments
 (0)