diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-24 11:37:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-24 17:05:43 +0200 |
commit | 29a2296af8c0d0e6a630bce1c064e1211047d014 (patch) | |
tree | 49d4ffbf4008d872d04f398b4577a5d35e8a6deb /vcl | |
parent | d397372f5cf9ff1fa67720c76768c3cc29f7de59 (diff) |
cid#1448301 silence Untrusted loop bound
Change-Id: Ib5b592fdcf234a78747058eb3cdc7efc5d9cddc6
Reviewed-on: https://gerrit.libreoffice.org/76251
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 2e974a10d3c6..e9aae0ba9356 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -436,6 +436,7 @@ static int GetSimpleTTOutline(TrueTypeFont const *ttf, sal_uInt32 glyphID, Contr pa[i++].flags = static_cast<sal_uInt32>(flag); if (flag & 8) { /*- repeat flag */ n = *p++; + // coverity[tainted_data] - i > lastPoint extra checks the n loop bound for (j=0; j<n; j++) { if (i > lastPoint) { /*- if the font is really broken */ free(pa); |