Skip to content

ipc: Fix session deactivation negative array index access

Christoph Haag requested to merge haagch/monado:ipc_array_index_acces into main

It is possible for s->global_state.active_client_index to be -1 when update_server_state_locked is called:

ipc_server_activate_session is only called from ipc_handle_compositor_predict_frame, which is only called from ipc_compositor_wait_frame.

So it is possible to deactivate a session that was never activated.

Merge request reports