Skip to content

ksmserver: Fix copying of auth data

David Edmundson requested to merge work/d_ed/ksmserver_fixup into master

Despite IceGenerateMagicCookie returning null terminated char*, the data itself is pure data may contain null bytes. For this reason we must copy the entire data_length, and not use string functions.

This fixes a bug where 1 in 10 logins would not have working session management if the generated data happened to contain a null byte.

Thanks to Matt Whitlock kde@mattwhitlock.name

BUG: 491130

Merge request reports

Loading