ref: f49a100a6c4b7e30f55b0b9867ea4255c144658c
parent: facfc79a1618de6ca2d8857a11f384be2243f04d
author: Werner Lemberg <[email protected]>
date: Thu Nov 6 08:30:28 EST 2014
* src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-06 Werner Lemberg <[email protected]>
+
+ * src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak.
+
2014-11-03 Infinality <[email protected]>
* src/truetype/ttsubpix.c (COMPATIBILITY_MODE_Rules): Updated.
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -144,7 +144,10 @@
if ( ( tables[i].size > tables[i + 1].offset ) ||
( tables[i].offset > tables[i + 1].offset - tables[i].size ) )
- return FT_THROW( Invalid_Offset );
+ {
+ error = FT_THROW( Invalid_Offset );
+ goto Exit;
+ }
}
if ( !have_change )