[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [freetype2] master 3b03682 1/2: [cid] Signedness revisions.
From: |
Werner LEMBERG |
Subject: |
Re: [freetype2] master 3b03682 1/2: [cid] Signedness revisions. |
Date: |
Mon, 11 Oct 2021 19:33:07 +0000 (UTC) |
>> > - if ( (FT_ULong)num_dicts > stream->size / 100 )
>> > + max_dicts = (FT_UInt)( stream->size / 100 );
>>
>> Hmm. `stream->size / 100` could be greater than FT_UInt (most
>> probably in a buggy font), no?
>
> A 400 Gb font might get smaller num_dicts than specified. Is that a
> problem?
Well, I dislike the possibility of uncontrolled overflow by
principle, even if it might be harmless.
Werner