[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 24 15:07:00 UTC 2019


 vcl/source/fontsubset/sft.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 29a2296af8c0d0e6a630bce1c064e1211047d014
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 24 11:37:16 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jul 24 17:05:43 2019 +0200

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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);


More information about the Libreoffice-commits mailing list