|author||Adam Jackson <email@example.com>||2009-04-14 14:54:25 (GMT)|
|committer||Adam Jackson <firstname.lastname@example.org>||2009-04-14 14:57:19 (GMT)|
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.
1 files changed, 2 insertions, 0 deletions
@@ -490,6 +490,8 @@ XdmcpRegisterConnection (
+ if (ConnectionAddresses.length + 1 == 256)
newAddress = xalloc (addrlen * sizeof (CARD8));