scrcpy/app/src
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
..
android Remove AINPUT_SOURCE_ANY value 2018-08-12 15:35:29 +02:00
sys Kill process with SIGKILL signal 2021-01-24 14:24:24 +01:00
util Fix undefined left shift 2021-01-24 15:31:21 +01:00
adb.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
adb.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
cli.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
cli.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
common.h Group common includes into common.h 2021-01-08 19:22:10 +01:00
compat.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
control_msg.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
control_msg.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
controller.c Fix size_t incorrectly assigned to int 2021-01-17 19:44:23 +01:00
controller.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
coords.h Move common structs to coords.h 2021-01-08 19:22:10 +01:00
decoder.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
decoder.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
device.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
device.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
device_msg.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
device_msg.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
event_converter.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
event_converter.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
events.h Add stream layer 2019-03-02 18:45:45 +01:00
file_handler.c Improve file handler error message 2021-01-24 14:24:24 +01:00
file_handler.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
fps_counter.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
fps_counter.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
icon.xpm Add window icon 2018-02-05 14:46:00 +01:00
input_manager.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
input_manager.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
main.c Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
opengl.c Enable trilinear filtering for OpenGL 2020-04-15 17:39:51 +02:00
opengl.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
receiver.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
receiver.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
recorder.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
recorder.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
scrcpy.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
scrcpy.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
screen.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
screen.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
server.c Fix file_handler process race condition 2021-01-24 14:24:24 +01:00
server.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
stream.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
stream.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
tiny_xpm.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
tiny_xpm.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
video_buffer.c Group common includes into common.h 2021-01-08 19:22:10 +01:00
video_buffer.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00