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

Caolán McNamara caolanm at redhat.com
Fri Oct 20 11:41:21 UTC 2017


 vcl/unx/generic/glyphs/glyphcache.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6a902de6db0537df0b7e13df062dc89006f98581
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 20 09:24:00 2017 +0100

    ofz+ubsan: left shift of negative value
    
    Change-Id: I304532162fc75b69807d5e45227368ab25736b93
    Reviewed-on: https://gerrit.libreoffice.org/43586
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/generic/glyphs/glyphcache.cxx b/vcl/unx/generic/glyphs/glyphcache.cxx
index c4c54ad0dffe..424fd31eb21f 100644
--- a/vcl/unx/generic/glyphs/glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/glyphcache.cxx
@@ -77,7 +77,7 @@ inline
 size_t GlyphCache::IFSD_Hash::operator()( const FontSelectPattern& rFontSelData ) const
 {
     // TODO: is it worth to improve this hash function?
-    sal_IntPtr nFontId = reinterpret_cast<sal_IntPtr>( rFontSelData.mpFontData );
+    sal_uIntPtr nFontId = reinterpret_cast<sal_uIntPtr>(rFontSelData.mpFontData);
 
     if (rFontSelData.maTargetName.indexOf(FontSelectPatternAttributes::FEAT_PREFIX)
         != -1)


More information about the Libreoffice-commits mailing list