summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-13 11:02:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-13 11:07:49 +0100
commit964000d415bcf491704dad57aee7e0656ea60dab (patch)
tree89de4638aa6ceac6f4c90c5e7ab7a6ec5d9ca1ee
parentcd3e5ddeb4100bab2a39cf9913e14eb371edbbcc (diff)
min legal size here is > 4
(cherry picked from commit 3131205c05a3fde4ef1e3322cc48ca23c443f6d3) Change-Id: I9f68d000b32623db4d949d13284043630f5689f4
-rw-r--r--vcl/source/gdi/jobset.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx
index ab6d0cd112bd..67109134dbe0 100644
--- a/vcl/source/gdi/jobset.cxx
+++ b/vcl/source/gdi/jobset.cxx
@@ -222,7 +222,7 @@ SvStream& ReadJobSetup( SvStream& rIStream, JobSetup& rJobSetup )
{
sal_uInt16 nLen = 0;
rIStream.ReadUInt16( nLen );
- if ( !nLen )
+ if (nLen <= 4)
return rIStream;
sal_uInt16 nSystem = 0;