[PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread Ville Syrjälä
On Thu, May 24, 2012 at 08:30:23PM +0200, Daniel Vetter wrote: > On Thu, May 24, 2012 at 08:53:59PM +0300, ville.syrjala at linux.intel.com > wrote: > > From: Ville Syrj?l? > > > > Make sure 'width * cpp' and 'height * pitch + offset' don't exceed > > UINT_MAX. > > > > Signed-off-by: Ville

[PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread Daniel Vetter
On Thu, May 24, 2012 at 09:54:37PM +0300, Ville Syrj?l? wrote: > On Thu, May 24, 2012 at 08:30:23PM +0200, Daniel Vetter wrote: > > On Thu, May 24, 2012 at 08:53:59PM +0300, ville.syrjala at linux.intel.com > > wrote: > > > From: Ville Syrj?l? > > > > > > Make sure 'width * cpp' and 'height *

[PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Make sure 'width * cpp' and 'height * pitch + offset' don't exceed UINT_MAX. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git

[PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread Daniel Vetter
On Thu, May 24, 2012 at 08:53:59PM +0300, ville.syrjala at linux.intel.com wrote: > From: Ville Syrj?l? > > Make sure 'width * cpp' and 'height * pitch + offset' don't exceed > UINT_MAX. > > Signed-off-by: Ville Syrj?l? > --- > drivers/gpu/drm/drm_crtc.c | 10 +- > 1 files changed,

[PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Make sure 'width * cpp' and 'height * pitch + offset' don't exceed UINT_MAX. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff

Re: [PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread Daniel Vetter
On Thu, May 24, 2012 at 08:53:59PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Make sure 'width * cpp' and 'height * pitch + offset' don't exceed UINT_MAX. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com ---

Re: [PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread Ville Syrjälä
On Thu, May 24, 2012 at 08:30:23PM +0200, Daniel Vetter wrote: On Thu, May 24, 2012 at 08:53:59PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Make sure 'width * cpp' and 'height * pitch + offset' don't exceed UINT_MAX. Signed-off-by:

Re: [PATCH 2/3] drm: Be more paranoid with integer overflows

2012-05-24 Thread Daniel Vetter
On Thu, May 24, 2012 at 09:54:37PM +0300, Ville Syrjälä wrote: On Thu, May 24, 2012 at 08:30:23PM +0200, Daniel Vetter wrote: On Thu, May 24, 2012 at 08:53:59PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com Make sure 'width * cpp' and