Skip to content

Commit 5b4f091

Browse files
committed
add test for remote flow sources in WebSockets
1 parent 6a1491d commit 5b4f091

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

javascript/ql/test/library-tests/frameworks/WebSocket/test.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ taintStep
3030
| server.js:11:11:11:27 | 'Hi from server!' | client.js:10:37:10:40 | data |
3131
| sockjs.js:11:20:11:50 | JSON.st ... .test)) | browser.js:25:26:25:31 | e.data |
3232
| sockjs.js:11:20:11:50 | JSON.st ... .test)) | browser.js:30:42:30:51 | event.data |
33+
remoteFlow
34+
| server.js:7:38:7:44 | message |
35+
| sockjs.js:9:31:9:37 | message |

javascript/ql/test/library-tests/frameworks/WebSocket/test.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ query ServerWebSocket::ReceiveNode serverReceive() { any() }
1515
query predicate taintStep(DataFlow::Node pred, DataFlow::Node succ) {
1616
any(DataFlow::AdditionalFlowStep s).step(pred, succ)
1717
}
18+
19+
query RemoteFlowSource remoteFlow() { any() }

0 commit comments

Comments
 (0)