scrcpy/server
Romain Vimont 9396ea6d42 Fix text input event segfault
The text input control_event was initially designed for mapping
SDL_TextInputEvent, limited to 32 characters.

For simplicity, the copy/paste feature was implemented using the same
control_event: it just sends the text to paste.

However, the pasted text might have a length breaking some assumptions:
 - on the client, the event max-size was smaller than the text
   max-length,
 - on the server, the raw buffer storing the events was smaller than the
   max event size.

Fix these inconsistencies, and encode the length on 2 bytes, to accept
more than 256 characters.

Fixes <https://github.com/Genymobile/scrcpy/issues/10>.
2018-03-09 22:30:10 +01:00
..
scripts Always invoke gradle except as root 2018-02-14 14:03:56 +01:00
src Fix text input event segfault 2018-03-09 22:30:10 +01:00
.gitignore Convert server to an Android project 2018-01-30 12:01:36 +01:00
build.gradle Apply Genymobile rules for Android projects 2018-02-07 20:58:18 +01:00
meson.build Accept prebuilt server 2018-02-14 16:28:21 +01:00
proguard-rules.pro Convert server to an Android project 2018-01-30 12:01:36 +01:00