diff options
author | Andras Timar <atimar@suse.com> | 2013-03-27 02:23:38 -0700 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-03-27 02:24:25 -0700 |
commit | 49a89c84dbf2b74d9e3693f8df8362468d42276b (patch) | |
tree | 51b509c5dd7b8df6e88cf023481e4e1bc96f7451 /rsc | |
parent | 50bab8605e8288f9dcca013a625cb0e5715e76f6 (diff) |
stop uninitialized memory leaking into resource files.
Change-Id: I8659426dd4ea0c13c8ed839ef5cfb686e6648042
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/tools/rsctools.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx index 136019e6dcdc..d760634f36b0 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 ); } |