diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-06-20 22:13:56 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-06-21 04:21:39 +0200 |
commit | 0c7c8aa5f690a4e751076a774feffcf6f95769f7 (patch) | |
tree | cd828bfad307e847801bf1efa2ad36f8bf1b3854 /sdext | |
parent | e62764108a1832e746f68768c29eaa90606903a7 (diff) |
prevent invalid memory access
e.g. fdo26139-1.pdf
Change-Id: Ic5854e2056c246d48e2962dfe0a91f67c2c30c04
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/wrapper/wrapper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index 08519a5309b5..c60a1412f0f1 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -553,7 +553,7 @@ void Parser::parseFontFamilyName( FontAttributes& rResult ) nLen -= nAttribLen; pCopy += nAttribLen; } - else + else if(nLen > 0) { if( *pCopy != '-' ) aNewFamilyName.append( *pCopy ); |