diff options
author | Matthias Huetsch [mhu] <matthias.huetsch@oracle.com> | 2011-02-01 14:14:30 +0100 |
---|---|---|
committer | Matthias Huetsch [mhu] <matthias.huetsch@oracle.com> | 2011-02-01 14:14:30 +0100 |
commit | e8c91f364e10dfc20b4ea9f3b940723282c1cab0 (patch) | |
tree | e40db83a66c34069557c79cba1da47e292918776 | |
parent | 12abdfdfabdd35df2fb06defaed0b7715c208724 (diff) |
#i115784# Valgrind: conditional jump or move depends on uninitialized value(s).
-rw-r--r-- | svtools/source/contnr/svlbox.cxx | 1 | ||||
-rw-r--r-- | vcl/source/gdi/jobset.cxx | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/svtools/source/contnr/svlbox.cxx b/svtools/source/contnr/svlbox.cxx index 11e19c6bab3c..abdd1c1889ee 100644 --- a/svtools/source/contnr/svlbox.cxx +++ b/svtools/source/contnr/svlbox.cxx @@ -683,6 +683,7 @@ SvViewDataEntry::~SvViewDataEntry() SvLBox_Impl::SvLBox_Impl( SvLBox& _rBox ) :m_bIsEmptyTextAllowed( true ) ,m_bEntryMnemonicsEnabled( false ) + ,m_bDoingQuickSelection( false ) ,m_pLink( NULL ) ,m_aMnemonicEngine( _rBox ) ,m_aQuickSelectionEngine( _rBox ) diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx index 2bc0addaa93c..01b80b38238f 100644 --- a/vcl/source/gdi/jobset.cxx +++ b/vcl/source/gdi/jobset.cxx @@ -299,13 +299,16 @@ SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup ) // Zur Zeit haben wir noch kein neues FileFormat // if ( rIStream.GetVersion() < JOBSET_FILEFORMAT2 ) { - USHORT nLen; - USHORT nSystem; sal_Size nFirstPos = rIStream.Tell(); + + USHORT nLen = 0; rIStream >> nLen; if ( !nLen ) return rIStream; + + USHORT nSystem = 0; rIStream >> nSystem; + char* pTempBuf = new char[nLen]; rIStream.Read( pTempBuf, nLen - sizeof( nLen ) - sizeof( nSystem ) ); if ( nLen >= sizeof(ImplOldJobSetupData)+4 ) |