mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-23 07:33:25 +00:00
97b001e7c0
Small unsigned integers promote to signed int. As a consequence, if v is a uint8_t, then (v << 24) yields an int, so the left shift is undefined if the MSB is 1. Cast to uint32_t to yield an unsigned value. Reported by USAN (meson x -Db_sanitize=undefined): runtime error: left shift of 255 by 24 places cannot be represented in type 'int' |
||
---|---|---|
.. | ||
src | ||
tests | ||
meson.build | ||
scrcpy.1 |