mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 07:28:03 +02:00
ConnDis: properly cast 'addr' before accessing it as a byte array.
If you use XDM-AUTHORIZATION-1 authorization keys for remote X11 clients over IPv6, the clients are liable to segfaults.
This commit is contained in:
parent
64325f38ba
commit
12e8d0d01d
1 changed files with 1 additions and 1 deletions
|
|
@ -1143,7 +1143,7 @@ GetAuthorization(
|
|||
|
||||
/* In the case of v4 mapped addresses send the v4
|
||||
part of the address - addr is already in network byte order */
|
||||
if (memcmp(addr+8, ipv4mappedprefix, 12) == 0) {
|
||||
if (memcmp((char*)addr+8, ipv4mappedprefix, 12) == 0) {
|
||||
for (i = 20 ; i < 24; i++)
|
||||
xdmcp_data[j++] = ((char *)addr)[i];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue