summaryrefslogtreecommitdiff
path: root/misc/openoffice/patches/patch-az
blob: 481e35c3be08e709f1c36cf2af82634ca5ca1944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-az,v 1.3 2005/04/14 20:48:58 mrauch Exp $

--- ../sot/source/sdstor/stgole.cxx.orig	2002-07-22 14:28:43.000000000 +0200
+++ ../sot/source/sdstor/stgole.cxx
@@ -156,6 +156,8 @@ BOOL StgCompObjStream::Load()
 		*this >> aClsId;
 		INT32 nLen1 = 0;
 		*this >> nLen1;
+		// the higher bits are ignored
+		nLen1 &= 0xFFFF;
 		sal_Char* p = new sal_Char[ (USHORT) nLen1 ];
 		if( Read( p, nLen1 ) == (ULONG) nLen1 )
 		{