scrcpy/app/src/adb
Romain Vimont 8d540e83c7 Fix adb get-serialno parsing
The function assumed that the raw output of "adb get-serialno" 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.
2022-02-06 14:30:19 +01:00
..
adb.c Fix adb get-serialno parsing 2022-02-06 14:30:19 +01:00
adb.h Build adb argv statically 2022-02-05 10:56:58 +01:00
adb_parser.c Fix adb device ip parsing 2022-02-06 14:30:07 +01:00
adb_parser.h Fix adb device ip parsing 2022-02-06 14:30:07 +01:00
adb_tunnel.c Use sc_ prefix for adb 2022-02-04 08:39:10 +01:00
adb_tunnel.h Move ADB code to adb/ 2022-02-04 08:39:10 +01:00