|
|
|
@ -1346,7 +1346,7 @@ |
|
|
|
|
|
|
|
|
|
static int |
|
|
|
|
read_binary_data( T1_Parser parser, |
|
|
|
|
FT_Long* size, |
|
|
|
|
FT_ULong* size, |
|
|
|
|
FT_Byte** base, |
|
|
|
|
FT_Bool incremental ) |
|
|
|
|
{ |
|
|
|
@ -1378,7 +1378,7 @@ |
|
|
|
|
if ( s >= 0 && s < limit - *base ) |
|
|
|
|
{ |
|
|
|
|
parser->root.cursor += s + 1; |
|
|
|
|
*size = s; |
|
|
|
|
*size = (FT_ULong)s; |
|
|
|
|
return !parser->root.error; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1803,7 +1803,7 @@ |
|
|
|
|
for ( count = 0; ; count++ ) |
|
|
|
|
{ |
|
|
|
|
FT_Long idx; |
|
|
|
|
FT_Long size; |
|
|
|
|
FT_ULong size; |
|
|
|
|
FT_Byte* base; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1861,7 +1861,7 @@ |
|
|
|
|
/* some fonts define empty subr records -- this is not totally */ |
|
|
|
|
/* compliant to the specification (which says they should at */ |
|
|
|
|
/* least contain a `return'), but we support them anyway */ |
|
|
|
|
if ( size < face->type1.private_dict.lenIV ) |
|
|
|
|
if ( size < (FT_ULong)face->type1.private_dict.lenIV ) |
|
|
|
|
{ |
|
|
|
|
error = FT_THROW( Invalid_File_Format ); |
|
|
|
|
goto Fail; |
|
|
|
@ -1872,7 +1872,7 @@ |
|
|
|
|
goto Fail; |
|
|
|
|
FT_MEM_COPY( temp, base, size ); |
|
|
|
|
psaux->t1_decrypt( temp, size, 4330 ); |
|
|
|
|
size -= face->type1.private_dict.lenIV; |
|
|
|
|
size -= (FT_ULong)face->type1.private_dict.lenIV; |
|
|
|
|
error = T1_Add_Table( table, (FT_Int)idx, |
|
|
|
|
temp + face->type1.private_dict.lenIV, size ); |
|
|
|
|
FT_FREE( temp ); |
|
|
|
@ -1977,7 +1977,7 @@ |
|
|
|
|
|
|
|
|
|
for (;;) |
|
|
|
|
{ |
|
|
|
|
FT_Long size; |
|
|
|
|
FT_ULong size; |
|
|
|
|
FT_Byte* base; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2071,7 +2071,7 @@ |
|
|
|
|
FT_Byte* temp = NULL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( size <= face->type1.private_dict.lenIV ) |
|
|
|
|
if ( size <= (FT_ULong)face->type1.private_dict.lenIV ) |
|
|
|
|
{ |
|
|
|
|
error = FT_THROW( Invalid_File_Format ); |
|
|
|
|
goto Fail; |
|
|
|
@ -2082,7 +2082,7 @@ |
|
|
|
|
goto Fail; |
|
|
|
|
FT_MEM_COPY( temp, base, size ); |
|
|
|
|
psaux->t1_decrypt( temp, size, 4330 ); |
|
|
|
|
size -= face->type1.private_dict.lenIV; |
|
|
|
|
size -= (FT_ULong)face->type1.private_dict.lenIV; |
|
|
|
|
error = T1_Add_Table( code_table, n, |
|
|
|
|
temp + face->type1.private_dict.lenIV, size ); |
|
|
|
|
FT_FREE( temp ); |
|
|
|
@ -2334,7 +2334,7 @@ |
|
|
|
|
else if ( *cur == 'R' && cur + 6 < limit && *(cur + 1) == 'D' && |
|
|
|
|
have_integer ) |
|
|
|
|
{ |
|
|
|
|
FT_Long s; |
|
|
|
|
FT_ULong s; |
|
|
|
|
FT_Byte* b; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2347,7 +2347,7 @@ |
|
|
|
|
else if ( *cur == '-' && cur + 6 < limit && *(cur + 1) == '|' && |
|
|
|
|
have_integer ) |
|
|
|
|
{ |
|
|
|
|
FT_Long s; |
|
|
|
|
FT_ULong s; |
|
|
|
|
FT_Byte* b; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|