diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-04 16:40:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-07 14:16:58 +0000 |
commit | 46c9f1e247e0e3d16c82566783344a2389fa4543 (patch) | |
tree | 2c1286b21ee2a6e9930ab43362e9c3789e48cf78 /vcl | |
parent | 6406a2701c3eae884e967f0b80e2e8a3228d39df (diff) |
try and help coverity out here
wrt #3 of 1213364 Untrusted loop bound
Change-Id: I4a47d4e1d6ebca14921c7e001d28354d687968d0
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 4085e837fa6c..1adaf794895a 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -455,7 +455,7 @@ static int GetSimpleTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoin const sal_uInt16 palen = lastPoint+1; //at a minimum its one byte per entry - if (palen > nBytesRemaining) + if (palen > nBytesRemaining || lastPoint > nBytesRemaining-1) { SAL_WARN("vcl.fonts", "Font " << OUString::createFromAscii(ttf->fname) << "claimed a palen of " |