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

Caolán McNamara caolanm at redhat.com
Fri Sep 29 19:55:01 UTC 2017


 vcl/source/font/fontselect.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 15dbae3bd0d13a5c374e2297b170e285e57af438
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 29 10:43:53 2017 +0100

    ofz+ubsan: signed integer overflow
    
    Change-Id: Ia8d0bb650d222ccda4c323eabebc4b1162fcf42f
    Reviewed-on: https://gerrit.libreoffice.org/42933
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/font/fontselect.cxx b/vcl/source/font/fontselect.cxx
index 8141c859ba94..062261263409 100644
--- a/vcl/source/font/fontselect.cxx
+++ b/vcl/source/font/fontselect.cxx
@@ -114,7 +114,7 @@ size_t FontSelectPatternAttributes::hashCode() const
     {
         nHash = maSearchName.hashCode();
     }
-    nHash += 11 * mnHeight;
+    nHash += 11U * mnHeight;
     nHash += 19 * GetWeight();
     nHash += 29 * GetItalic();
     nHash += 37 * mnOrientation;


More information about the Libreoffice-commits mailing list