rsc/source/tools/rsctools.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 49a89c84dbf2b74d9e3693f8df8362468d42276b Author: Andras Timar <ati...@suse.com> Date: Wed Mar 27 02:23:38 2013 -0700
stop uninitialized memory leaking into resource files. Change-Id: I8659426dd4ea0c13c8ed839ef5cfb686e6648042 diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx index 136019e..d760634 100644 --- a/rsc/source/tools/rsctools.cxx +++ b/rsc/source/tools/rsctools.cxx @@ -268,7 +268,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 ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits