mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
The function assumed that the raw output of "adb getprop" was a NUL-terminated string, but it is not the case. It this output did not end with a space or a new line character, then sc_str_truncate() would write '\0' over the last character. Even worse, if the output was empty, then sc_str_truncate() would write out-of-bounds. Avoid the error-prone sc_str_truncate() util function. |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| meson.build | ||
| scrcpy-windows.manifest | ||
| scrcpy-windows.rc | ||
| scrcpy.1 | ||