mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Add tests
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
import org.springframework.web.socket.handler.TextWebSocketHandler;
|
||||
import org.springframework.web.socket.WebSocketSession;
|
||||
import org.springframework.web.socket.WebSocketMessage;
|
||||
|
||||
|
||||
public class Test extends TextWebSocketHandler {
|
||||
void sink(Object o) {}
|
||||
|
||||
@Override
|
||||
public void handleMessage(WebSocketSession s, WebSocketMessage<?> m) {
|
||||
sink(s); // $hasTaintFlow
|
||||
sink(s.getAcceptedProtocol()); // $hasTaintFlow
|
||||
sink(s.getHandshakeHeaders()); // $hasTaintFlow
|
||||
sink(s.getPrincipal()); // $hasTaintFlow
|
||||
sink(s.getUri()); // $hasTaintFlow
|
||||
|
||||
sink(m); // $hasTaintFlow
|
||||
sink(m.getPayload()); // $hasTaintFlow
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user