Kaydet (Commit) 46c9f1e2 authored tarafından Caolán McNamara's avatar Caolán McNamara

try and help coverity out here

wrt #3 of 1213364 Untrusted loop bound

Change-Id: I4a47d4e1d6ebca14921c7e001d28354d687968d0
üst 6406a270
...@@ -455,7 +455,7 @@ static int GetSimpleTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoin ...@@ -455,7 +455,7 @@ static int GetSimpleTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoin
const sal_uInt16 palen = lastPoint+1; const sal_uInt16 palen = lastPoint+1;
//at a minimum its one byte per entry //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) << SAL_WARN("vcl.fonts", "Font " << OUString::createFromAscii(ttf->fname) <<
"claimed a palen of " "claimed a palen of "
......
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