LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.1k stars 482 forks source link

Prevent crash on incomplete WebSocket handshake #510

Closed dsilakov closed 2 years ago

dsilakov commented 2 years ago

In our libvcnserver-based application we once met a crash likely caused by a client issue - it has somehow sent and invalid handshake without a key. However, it's not a good idea for the server to crash in this key, we should return an error on such occasion and keep running.