mirror of
https://github.com/Genymobile/scrcpy
synced 2024-11-18 21:26:07 +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' |
||
---|---|---|
.. | ||
buffer_util.h | ||
cbuf.h | ||
lock.h | ||
log.h | ||
net.c | ||
net.h | ||
process.c | ||
process.h | ||
queue.h | ||
str_util.c | ||
str_util.h |