scrcpy/app/tests
Romain Vimont 5d6bd8f9cd Fix adb device ip parsing
The parser assumed that its input was a NUL-terminated string, but it
was not the case: it is just the raw output of "adb devices ip route".

In practice, it was harmless, since the output always ended with '\n'
(which was replaced by '\0' on truncation), but it was incorrect
nonetheless.

Always write a '\0' at the end of the buffer, and explicitly parse as a
NUL-terminated string. For that purpose, avoid the error-prone
sc_str_truncate() util function.
2022-02-06 14:30:07 +01:00
..
test_adb_parser.c Fix adb device ip parsing 2022-02-06 14:30:07 +01:00
test_buffer_util.c Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
test_cbuf.c Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
test_cli.c Rename SC_MOD_* to SC_SHORTCUT_MOD_* 2022-01-01 23:28:45 +01:00
test_clock.c Add clock tests 2021-07-14 14:54:22 +02:00
test_control_msg_serialize.c Use sc_ prefix for control_msg enums 2022-01-27 16:47:51 +01:00
test_device_msg_deserialize.c Add device clipboard set acknowledgement 2021-11-23 21:15:05 +01:00
test_queue.c Rename queue to sc_queue 2021-07-14 00:35:10 +02:00
test_str.c Add util function to remove trailing '\r' 2021-11-29 20:39:03 +01:00
test_strbuf.c Add missing includes 2021-11-24 21:44:29 +01:00