Author: pescetti Date: Thu Sep 24 23:11:49 2015 New Revision: 1705193 URL: http://svn.apache.org/viewvc?rev=1705193&view=rev Log: #i126560# Fix print job counter reset. Patch by: Damjan Jovanovic <dam...@apache.org>
Modified: openoffice/trunk/main/vcl/source/gdi/jobset.cxx Modified: openoffice/trunk/main/vcl/source/gdi/jobset.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/source/gdi/jobset.cxx?rev=1705193&r1=1705192&r2=1705193&view=diff ============================================================================== --- openoffice/trunk/main/vcl/source/gdi/jobset.cxx (original) +++ openoffice/trunk/main/vcl/source/gdi/jobset.cxx Thu Sep 24 23:11:49 2015 @@ -301,10 +301,10 @@ SvStream& operator>>( SvStream& rIStream sal_uInt16 nLen = 0; rIStream >> nLen; - if ( !nLen ) - return rIStream; sal_uInt16 nSystem = 0; + if ( nLen < sizeof( nLen ) + sizeof( nSystem) ) + return rIStream; rIStream >> nSystem; char* pTempBuf = new char[nLen];