Fix Savannah bug #37350.

* src/type1/t1parse.c (T1_Get_Private_Dict) <found>: Check for ASCII
storage only if we actually have at least four bytes.
This commit is contained in:
Werner Lemberg 2012-09-17 20:59:31 +02:00
parent 302fd62590
commit ebda8b3257
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2012-09-17 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #37350.
* src/type1/t1parse.c (T1_Get_Private_Dict) <found>: Check for ASCII
storage only if we actually have at least four bytes.
2012-09-15 Werner Lemberg <wl@gnu.org>
[autofit] Implement `fallback-script' property.

View File

@ -441,7 +441,8 @@
/* the `eexec' keyword); if they all are hexadecimal digits, then */
/* we have a case of ASCII storage */
if ( ft_isxdigit( cur[0] ) && ft_isxdigit( cur[1] ) &&
if ( cur + 3 < limit &&
ft_isxdigit( cur[0] ) && ft_isxdigit( cur[1] ) &&
ft_isxdigit( cur[2] ) && ft_isxdigit( cur[3] ) )
{
/* ASCII hexadecimal encoding */