From c799dd67259fbb0c194e2665d68d2585dd074bf4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 27 Aug 2013 21:46:03 +0200 Subject: [PATCH] * src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos. --- ChangeLog | 4 ++++ src/sfnt/ttload.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 399db545f..eb1a97d1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-08-27 Behdad Esfahbod + + * src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos. + 2013-08-27 Behdad Esfahbod FT_Open_Face: Improve external stream handling. diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c index 89a8ae04c..e6b9064f1 100644 --- a/src/sfnt/ttload.c +++ b/src/sfnt/ttload.c @@ -391,8 +391,8 @@ { entry->Tag = FT_GET_TAG4(); entry->CheckSum = FT_GET_ULONG(); - entry->Offset = FT_GET_LONG(); - entry->Length = FT_GET_LONG(); + entry->Offset = FT_GET_ULONG(); + entry->Length = FT_GET_ULONG(); /* ignore invalid tables */ if ( entry->Offset + entry->Length > stream->size )