[PATCH libXi 1/3] Fix potential corruption in mask_len handling

walter harms wharms at bfs.de
Tue May 28 10:16:05 PDT 2013



Am 28.05.2013 17:55, schrieb Alan Coopersmith:
> On 05/28/13 12:22 AM, walter harms wrote:
>> Is the INT_MAX needed here ? running X on 16bit machines seems very odd
>> (is that possible ?)
> 
> 16-bits would be SHORT_MAX.  INT_MAX is 32-bits on all platforms X
> currently
> supports.
> 

This was not my point.  0xffffff is less then INT_MAX. so this condition
will apply before INT_MAX any time.

re,
 wh


More information about the xorg-devel mailing list