[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - rsc/source

Andras Timar atimar at suse.com
Wed Mar 27 02:52:48 PDT 2013


 rsc/source/tools/rsctools.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit e0b71d9c2bede069fa8757c40b782784d93a4bb1
Author: Andras Timar <atimar at suse.com>
Date:   Wed Mar 27 02:23:38 2013 -0700

    stop uninitialized memory leaking into resource files.
    
    Change-Id: I8659426dd4ea0c13c8ed839ef5cfb686e6648042
    Reviewed-on: https://gerrit.libreoffice.org/3080
    Reviewed-by: Michael Meeks <michael.meeks at suse.com>
    Tested-by: Michael Meeks <michael.meeks at suse.com>

diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx
index 02507cc..a9dfb1b 100644
--- a/rsc/source/tools/rsctools.cxx
+++ b/rsc/source/tools/rsctools.cxx
@@ -377,7 +377,10 @@ sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize )
 char * RscWriteRc :: GetPointer( sal_uInt32 nSize )
 {
     if( !pMem )
+    {
         pMem = (char *)rtl_allocateMemory( nLen );
+        memset( pMem, 0, nLen );
+    }
     return( pMem + nSize );
 }
 


More information about the Libreoffice-commits mailing list