1
Description: Fix incorrect boundary checks
2
Origin: upstream, http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=292144b44a15c1a72f2ef76475d65b7a3a3fba67
4
Index: freetype-2.4.8/src/psaux/psconv.c
5
===================================================================
6
--- freetype-2.4.8.orig/src/psaux/psconv.c 2009-07-31 11:45:18.000000000 -0500
7
+++ freetype-2.4.8/src/psaux/psconv.c 2012-03-20 15:48:13.296374827 -0500
12
- if ( p == limit || base < 2 || base > 36 )
13
+ if ( p >= limit || base < 2 || base > 36 )
16
if ( *p == '-' || *p == '+' )
25
if ( *p == '-' || *p == '+' )
36
if ( n > (FT_UInt)( limit - p ) )
37
n = (FT_UInt)( limit - p );
47
if ( n > (FT_UInt)(limit - p) )
48
n = (FT_UInt)(limit - p);