[PATCH] Xi: Clamp XIClient maximal version to XIVersion

Peter Hutterer peter.hutterer at who-t.net
Wed Jul 31 21:54:22 PDT 2013


On Tue, Jul 30, 2013 at 12:47:39PM -0500, Keith Packard wrote:
> Maarten Lankhorst <maarten.lankhorst at canonical.com> writes:
> 
> > Do not allow setting client version to an arbitrary value >= XIVersion.
> > Fixes a test error with test/xi2/protocol-xiqueryversion.c, introduced by
> > commit 4360514d1c "Xi: Allow clients to ask for 2.3 and then 2.2
> > without failing"
> 
> Heh. My slow internet access caused me to write exactly the same patch
> (as near as I can tell).
> 
> > -                client->errorValue = stuff->major_version;
> > +                client->errorValue = major;
> 
> 
> This should remain stuff->major_version -- we always send back the
> client supplied data in the BadValue request (not that it really
> matters, as no-one is likely to care, but...)

fixed this locally before merging, thanks. though the usefulness is limited,
chances for XI3 are nil and we can't change the errorValue to minor... oh
well.

Cheers,
   Peter
 
> Other than that,
> 
> Reviewed-by: Keith Packard <keithp at keithp.com>
 



More information about the xorg-devel mailing list