[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] Fix for NULL sfnt names
From: |
Detlef Würkner |
Subject: |
[Devel] Fix for NULL sfnt names |
Date: |
Fri, 31 May 2002 12:28:33 +0200 |
Hello!
Just found out that one of the recent changes to the sfnt name loader
resulted in NULL name entries where older versions did find valid entries,
e.g. the Trademark entry of gara.ttf. The fix:
----8<----
--- freetype2-current/src/sfnt/ttload.c.ori Sun May 12 19:59:17 2002
+++ freetype2-current/src/sfnt/ttload.c Fri May 31 10:15:22 2002
@@ -1027,7 +1027,7 @@
break;
/* invalid name entries will have "cur->string" set to NULL! */
- if ( (FT_ULong)( cur->stringOffset + cur->stringLength ) < storageSize
)
+ if ( (FT_ULong)( cur->stringOffset + cur->stringLength ) <=
storageSize )
cur->string = storage + cur->stringOffset;
else
{
----8<----
Ciao, Detlef
--
_ // address@hidden
\X/ Detlef Wuerkner, Langgoens/Germany
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Devel] Fix for NULL sfnt names,
Detlef Würkner <=