From ce740afe80a3230dd66b820f428467b82b89dee2 Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Thu, 14 Jun 2012 08:32:39 +0000 Subject: c#705441# handle invalid FDSelect entry while emitting Type1 Change-Id: I1865eec0dcb29c74e98a6f42f7cf37a2851f8e85 --- vcl/source/fontsubset/cff.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vcl') diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index 55e58979677c..dabc634252da 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -2257,6 +2257,8 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter, assert( (nGlyphId >= 0) && (nGlyphId < mnCharStrCount)); // get privdict context matching to the glyph const int nFDSelect = getFDSelect( nGlyphId); + if( nFDSelect < 0) + continue; mpCffLocal = &maCffLocal[ nFDSelect]; // convert the Type2op charstring to its Type1op counterpart const int nT2Len = seekIndexData( mnCharStrBase, nGlyphId); -- cgit