Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
ft2demos
bnc619562_CVE-2010-2500.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bnc619562_CVE-2010-2500.diff of Package ft2demos
From 6305b869d86ff415a33576df6d43729673c66eee Mon Sep 17 00:00:00 2001 From: Werner Lemberg <wl@gnu.org> Date: Wed, 30 Jun 2010 16:24:33 +0000 Subject: Fix Savannah bug #30263. * src/smooth/ftgrays.c (gray_render_span): Use cast to `unsigned int' to avoid integer overflow. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use smaller threshold values for `width' and `height'. This is not directly related to the bug fix but makes sense anyway. --- --- freetype-2.3.9/src/smooth/ftgrays.c.orig 2010-08-11 20:05:35.195794246 +0200 +++ freetype-2.3.9/src/smooth/ftgrays.c 2010-08-11 20:05:35.214793879 +0200 @@ -1156,7 +1156,7 @@ /* first of all, compute the scanline offset */ p = (unsigned char*)map->buffer - y * map->pitch; if ( map->pitch >= 0 ) - p += ( map->rows - 1 ) * map->pitch; + p += (unsigned)( ( map->rows - 1 ) * map->pitch ); for ( ; count > 0; count--, spans++ ) { --- freetype-2.3.9/src/smooth/ftsmooth.c.orig 2010-08-11 20:05:35.169794246 +0200 +++ freetype-2.3.9/src/smooth/ftsmooth.c 2010-08-11 20:06:53.646780960 +0200 @@ -194,7 +194,7 @@ #endif - if ( pitch > 0xFFFF || height > 0xFFFF ) + if ( pitch > 0x7FFFU || height > 0x7FFFU ) { FT_ERROR(( "ft_smooth_render_generic: glyph too large: %d x %d\n", width, height ));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor