You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pe...@apache.org on 2015/09/25 01:11:49 UTC

svn commit: r1705193 - /openoffice/trunk/main/vcl/source/gdi/jobset.cxx

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 <da...@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];