Kaydet (Commit) ce740afe authored tarafından Herbert Dürr's avatar Herbert Dürr Kaydeden (comit) Caolán McNamara

c#705441# handle invalid FDSelect entry while emitting Type1

Change-Id: I1865eec0dcb29c74e98a6f42f7cf37a2851f8e85
üst aadde740
...@@ -2257,6 +2257,8 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter, ...@@ -2257,6 +2257,8 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
assert( (nGlyphId >= 0) && (nGlyphId < mnCharStrCount)); assert( (nGlyphId >= 0) && (nGlyphId < mnCharStrCount));
// get privdict context matching to the glyph // get privdict context matching to the glyph
const int nFDSelect = getFDSelect( nGlyphId); const int nFDSelect = getFDSelect( nGlyphId);
if( nFDSelect < 0)
continue;
mpCffLocal = &maCffLocal[ nFDSelect]; mpCffLocal = &maCffLocal[ nFDSelect];
// convert the Type2op charstring to its Type1op counterpart // convert the Type2op charstring to its Type1op counterpart
const int nT2Len = seekIndexData( mnCharStrBase, nGlyphId); const int nT2Len = seekIndexData( mnCharStrBase, nGlyphId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment