mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 13:10:24 +01:00
xdmcp: Don't crash on X -query with more than 255 IP addresses. (#20675)
You could be more clever than this, but the wire protocol says this really is an array of not more than 255 ARRAY8, so it's not just a matter of changing the types.
This commit is contained in:
parent
f0543ae4ec
commit
0eb19f9437
1 changed files with 2 additions and 0 deletions
|
|
@ -490,6 +490,8 @@ XdmcpRegisterConnection (
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (ConnectionAddresses.length + 1 == 256)
|
||||
return;
|
||||
newAddress = xalloc (addrlen * sizeof (CARD8));
|
||||
if (!newAddress)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue