scrcpy/app/src/util
Romain Vimont 97b001e7c0 Fix undefined left shift
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'
2021-01-24 15:31:21 +01:00
..
buffer_util.h Fix undefined left shift 2021-01-24 15:31:21 +01:00
cbuf.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
lock.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
log.h Make scrcpy.h independant of other headers 2020-06-19 22:30:02 +02:00
net.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
net.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
process.c Fix file_handler process race condition 2021-01-24 14:24:24 +01:00
process.h Fix file_handler process race condition 2021-01-24 14:24:24 +01:00
queue.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
str_util.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
str_util.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00