Index: src/truetype/ttpload.c |
diff --git a/src/truetype/ttpload.c b/src/truetype/ttpload.c |
index 818b29d2638d714de5c3bb88c48574d4be80472d..bb6005d45ea1511902f8c81212b61d7c218b0bb2 100644 |
--- a/src/truetype/ttpload.c |
+++ b/src/truetype/ttpload.c |
@@ -4,7 +4,7 @@ |
/* */ |
/* TrueType-specific tables loader (body). */ |
/* */ |
-/* Copyright 1996-2002, 2004-2011 by */ |
+/* Copyright 1996-2002, 2004-2012 by */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* */ |
/* This file is part of the FreeType project, and may only be used, */ |
@@ -211,22 +211,22 @@ |
} |
/* Check broken location data */ |
- if ( pos1 >= face->glyf_len ) |
+ if ( pos1 > face->glyf_len ) |
{ |
FT_TRACE1(( "tt_face_get_location:" |
- " too large offset=0x%08lx found for gid=0x%04lx," |
- " exceeding the end of glyf table (0x%08lx)\n", |
- pos1, gindex, face->glyf_len )); |
+ " too large offset=0x%08lx found for gid=0x%04lx," |
+ " exceeding the end of glyf table (0x%08lx)\n", |
+ pos1, gindex, face->glyf_len )); |
*asize = 0; |
return 0; |
} |
- if ( pos2 >= face->glyf_len ) |
+ if ( pos2 > face->glyf_len ) |
{ |
FT_TRACE1(( "tt_face_get_location:" |
- " too large offset=0x%08lx found for gid=0x%04lx," |
- " truncate at the end of glyf table (0x%08lx)\n", |
- pos2, gindex + 1, face->glyf_len )); |
+ " too large offset=0x%08lx found for gid=0x%04lx," |
+ " truncate at the end of glyf table (0x%08lx)\n", |
+ pos2, gindex + 1, face->glyf_len )); |
pos2 = face->glyf_len; |
} |