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

Stephan Bergmann sbergman at redhat.com
Mon Nov 10 23:29:44 PST 2014


 bridges/source/cpp_uno/shared/vtablefactory.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 269b0b40814defe0241e8c79c1834e488ea13bc5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Nov 11 08:28:52 2014 +0100

    Avoid -fsanitize=signed-integer-overflow
    
    Change-Id: Icec67e6eb57605102cabf494d3e2bb6249d785c7

diff --git a/bridges/source/cpp_uno/shared/vtablefactory.cxx b/bridges/source/cpp_uno/shared/vtablefactory.cxx
index 2daf76b..2af1b62 100644
--- a/bridges/source/cpp_uno/shared/vtablefactory.cxx
+++ b/bridges/source/cpp_uno/shared/vtablefactory.cxx
@@ -348,7 +348,7 @@ sal_Int32 VtableFactory::createVtables(
                 code = addLocalFunctions(
                     &slots, code,
 #ifdef USE_DOUBLE_MMAP
-                    sal_IntPtr(block.exec) - sal_IntPtr(block.start),
+                    sal_uIntPtr(block.exec) - sal_uIntPtr(block.start),
 #endif
                     type2,
                     baseOffset.getFunctionOffset(type2->aBase.pTypeName),


More information about the Libreoffice-commits mailing list