[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 99fb3c3 3/8: Comment updates.
From: |
Werner LEMBERG |
Subject: |
[freetype2] master 99fb3c3 3/8: Comment updates. |
Date: |
Mon, 6 Mar 2017 14:47:01 -0500 (EST) |
branch: master
commit 99fb3c3ab84ae089d1ec92bd38e71e900d1e7513
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
Comment updates.
---
src/sfnt/sfobjs.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 67e868c..eb41704 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -964,7 +964,7 @@
fvar_len < 20 ||
FT_READ_ULONG( version ) ||
FT_READ_USHORT( offset ) ||
- FT_STREAM_SKIP( 2 ) /* count_size_pairs */ ||
+ FT_STREAM_SKIP( 2 ) /* reserved */ ||
FT_READ_USHORT( num_axes ) ||
FT_READ_USHORT( axis_size ) ||
FT_READ_USHORT( num_instances ) ||
@@ -980,18 +980,13 @@
/* check that the data is bound by the table length */
if ( version != 0x00010000UL ||
-#if 0
- /* fonts like `JamRegular.ttf' have an incorrect value for */
- /* `count_size_pairs'; since value 2 is hard-coded in `fvar' */
- /* version 1.0, we simply ignore it */
- count_size_pairs != 2 ||
-#endif
axis_size != 20 ||
num_axes == 0 ||
/* `num_axes' limit implied by 16-bit `instance_size' */
num_axes > 0x3FFE ||
!( instance_size == 4 + 4 * num_axes ||
instance_size == 6 + 4 * num_axes ) ||
+ /* `num_instances' limit implied by limited range of name IDs */
num_instances > 0x7EFF ||
offset +
axis_size * num_axes +
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 99fb3c3 3/8: Comment updates.,
Werner LEMBERG <=