3
From 9bd20b7304aae61de5d50ac359cf27132bafd4c1 Mon Sep 17 00:00:00 2001
4
From: Werner Lemberg <wl@gnu.org>
5
Date: Sat, 22 Nov 2014 05:24:45 +0000
6
Subject: [sfnt] Fix Savannah bug #43656.
8
* src/sfnt/ttcmap.c (tt_cmap4_validate): Fix order of validity
11
Index: freetype-2.5.2/src/sfnt/ttcmap.c
12
===================================================================
13
--- freetype-2.5.2.orig/src/sfnt/ttcmap.c 2015-02-24 08:21:38.682007970 -0500
14
+++ freetype-2.5.2/src/sfnt/ttcmap.c 2015-02-24 08:21:38.678007944 -0500
16
FT_Error error = FT_Err_Ok;
20
- FT_INVALID_TOO_SHORT;
22
/* in certain fonts, the `length' field is invalid and goes */
23
/* out of bound. We try to correct this here... */
24
if ( table + length > valid->limit )
26
length = (FT_UInt)( valid->limit - table );
30
+ FT_INVALID_TOO_SHORT;
33
num_segs = TT_NEXT_USHORT( p ); /* read segCountX2 */