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:
parent
302fd62590
commit
ebda8b3257
|
@ -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.
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue