The vulnerability lies in the openclaw package's handling of WebSocket connections for voice calls. Specifically, the RealtimeCallHandler.handleWebSocketUpgrade function, which manages the transition from HTTP to WebSocket, did not enforce a size limit on incoming WebSocket frames. This oversight allowed for a denial-of-service (DoS) vulnerability, as an attacker could send excessively large frames, causing the server to exhaust its memory and crash. The provided patch addresses this by introducing a maxPayload option in the WebSocketServer configuration within the handleWebSocketUpgrade function, effectively limiting the maximum size of a WebSocket frame to 256 KB. Any frame exceeding this limit is rejected before it can be processed, thus mitigating the DoS risk. The analysis of the commit afadb7dae6738819ad9c7d2597ace0516957d20e clearly shows the addition of this maxPayload setting as the fix, pinpointing RealtimeCallHandler.handleWebSocketUpgrade as the vulnerable function.