Re: [Pixman] [PATCH] In pixman_image_create_bits() allow images larger than 2GB

2011-08-11 Thread Soeren Sandmann
Chris Wilson writes: > On Thu, 11 Aug 2011 06:43:03 -0400, Søren Sandmann wrote: >> From: Søren Sandmann Pedersen >> >> There is no reason for pixman_image_create_bits() to check that the >> image size fits in int32_t. The correct check is against size_t since >> that is what the argument to c

Re: [Pixman] [PATCH] In pixman_image_create_bits() allow images larger than 2GB

2011-08-11 Thread Chris Wilson
On Thu, 11 Aug 2011 06:43:03 -0400, Søren Sandmann wrote: > From: Søren Sandmann Pedersen > > There is no reason for pixman_image_create_bits() to check that the > image size fits in int32_t. The correct check is against size_t since > that is what the argument to calloc() is. The only questi

[Pixman] [PATCH] In pixman_image_create_bits() allow images larger than 2GB

2011-08-11 Thread Søren Sandmann
From: Søren Sandmann Pedersen There is no reason for pixman_image_create_bits() to check that the image size fits in int32_t. The correct check is against size_t since that is what the argument to calloc() is. This patch fixes this by adding a new _pixman_multiply_overflows_size() and using it i