prevent invalid memory access

e.g. fdo26139-1.pdf

Change-Id: Ic5854e2056c246d48e2962dfe0a91f67c2c30c04
This commit is contained in:
Markus Mohrhard 2014-06-20 22:13:56 +02:00
parent e62764108a
commit 0c7c8aa5f6

View file

@ -553,7 +553,7 @@ void Parser::parseFontFamilyName( FontAttributes& rResult )
nLen -= nAttribLen; nLen -= nAttribLen;
pCopy += nAttribLen; pCopy += nAttribLen;
} }
else else if(nLen > 0)
{ {
if( *pCopy != '-' ) if( *pCopy != '-' )
aNewFamilyName.append( *pCopy ); aNewFamilyName.append( *pCopy );