]> git.proxmox.com Git - mirror_novnc.git/commit
Fix crash with too large clipboard data
authorAlex Tanskanen <aleta@cendio.com>
Thu, 20 Feb 2020 15:12:35 +0000 (16:12 +0100)
committerAlex Tanskanen <aleta@cendio.com>
Fri, 21 Feb 2020 08:39:31 +0000 (09:39 +0100)
commitceb8ef4ec1a21bc5917185d43360aa78ff735afe
tree7ff372bc38116e39673cc43bd31a8fefa8bf152b
parente4e6a9b9b40545094530cf1d751b33466d2ed57d
Fix crash with too large clipboard data

If too much text is copied in the session, String.fromCharCode.apply()
would crash in Safari on macOS and Chrome on Linux. This commit fixes
this issue by avoiding apply() altogether. Also added test to cover this
issue.
core/rfb.js
tests/test.rfb.js