scrcpy/app
Romain Vimont afbaf59abb Cast to sc_tick type in conversion macros
With the old macros definitions, the type of the result depended on the
type of `sec`.

In particular, if sec is a 32-bit type, sec * 1000000 was likely to
overflow (even if the result was assigned to a sc_tick by the caller of
the macro).

This was the case on Windows, where the long type is a 32-bit signed
integer: the --time-limit argument, expressed in seconds, was first
parsed to a long value, then multiplied by 1000000 by the
SC_TICK_FROM_SEC() macro, causing an overflow when the value was greater
than 2147 (2^31 / 1000000).

Fixes #5355 <https://github.com/Genymobile/scrcpy/issues/5355>
2024-10-08 18:18:05 +02:00
..
data Make -K -M and -G use AOA in OTG mode 2024-09-15 11:21:56 +02:00
deps Upgrade FFmpeg (7.0.2) for Windows 2024-09-15 18:58:53 +02:00
src Cast to sc_tick type in conversion macros 2024-10-08 18:18:05 +02:00
tests Mention physical gamepad names for UHID devices 2024-09-15 11:21:56 +02:00
meson.build Extract mouse capture 2024-10-06 18:00:56 +02:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 2.7 2024-09-15 18:59:27 +02:00
scrcpy.1 Add shortcut for horizontal tilt 2024-09-25 21:38:09 +02:00