File tree Expand file tree Collapse file tree 4 files changed +6
-16
lines changed
src/semmle/javascript/frameworks
test/library-tests/frameworks/Electron Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module Electron {
1616 /**
1717 * An instantiation of `BrowserWindow` or `BrowserView`.
1818 */
19- abstract private class NewBrowserObject extends BrowserObject , DataFlow:: TrackedNode {
19+ abstract private class NewBrowserObject extends BrowserObject , DataFlow:: SourceNode {
2020 DataFlow:: NewNode self ;
2121
2222 NewBrowserObject ( ) { this = self }
@@ -250,10 +250,10 @@ module Electron {
250250 /**
251251 * An additional flow step via an Electron IPC message.
252252 */
253- private class IPCAdditionalFlowStep extends DataFlow:: Configuration {
254- IPCAdditionalFlowStep ( ) { this instanceof DataFlow :: Configuration }
253+ private class IPCAdditionalFlowStep extends DataFlow:: AdditionalFlowStep {
254+ IPCAdditionalFlowStep ( ) { ipcFlowStep ( this , _ ) }
255255
256- override predicate isAdditionalFlowStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
256+ override predicate step ( DataFlow:: Node pred , DataFlow:: Node succ ) {
257257 ipcFlowStep ( pred , succ )
258258 }
259259 }
Original file line number Diff line number Diff line change 44| electron.js:3:10:3:48 | new Bro ... s: {}}) |
55| electron.js:4:5:4:46 | bv |
66| electron.js:4:10:4:46 | new Bro ... s: {}}) |
7- | electron.js:35:14:35:14 | x |
8- | electron.js:36:12:36:12 | x |
9- | electron.js:39:1:39:7 | foo(bw) |
107| electron.js:39:5:39:6 | bw |
11- | electron.js:40:1:40:7 | foo(bv) |
128| electron.js:40:5:40:6 | bv |
139| electron.ts:3:12:3:13 | bw |
1410| electron.ts:3:40:3:41 | bv |
Original file line number Diff line number Diff line change 11import javascript
22
3- class TestConfig extends DataFlow:: Configuration {
4- TestConfig ( ) { this = "TestConfig" }
5- }
6-
7- from TestConfig cfg , DataFlow:: Node pred , DataFlow:: Node succ
8- where cfg .isAdditionalFlowStep ( pred , succ )
3+ from DataFlow:: AdditionalFlowStep afs , DataFlow:: Node pred , DataFlow:: Node succ
4+ where afs .step ( pred , succ )
95select pred , succ
Original file line number Diff line number Diff line change 1- | electron.js:39:1:39:19 | foo(bw).webContents |
2- | electron.js:40:1:40:19 | foo(bv).webContents |
31| electron.ts:4:3:4:16 | bw.webContents |
42| electron.ts:5:3:5:16 | bv.webContents |
You can’t perform that action at this time.
0 commit comments