INTEGRATION: CWS cmcfixes28 (1.30.18); FILE MERGED
2006/10/02 14:38:05 cmc 1.30.18.1: #i70042# ignore out of bounds wmf/emf values
This commit is contained in:
@@ -4,9 +4,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: winwmf.cxx,v $
|
* $RCSfile: winwmf.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.30 $
|
* $Revision: 1.31 $
|
||||||
*
|
*
|
||||||
* last change: $Author: obo $ $Date: 2006-09-17 14:55:43 $
|
* last change: $Author: obo $ $Date: 2006-10-11 09:24:48 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to
|
* The Contents of this file are made available subject to
|
||||||
* the terms of GNU Lesser General Public License Version 2.1.
|
* the terms of GNU Lesser General Public License Version 2.1.
|
||||||
@@ -866,17 +866,21 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
|
|||||||
aMemoryStream >> aPt.X()
|
aMemoryStream >> aPt.X()
|
||||||
>> aPt.Y()
|
>> aPt.Y()
|
||||||
>> nStringLen;
|
>> nStringLen;
|
||||||
sal_Unicode* pBuf = aString.AllocBuffer( (sal_uInt16)nStringLen );
|
|
||||||
for ( i = 0; i < nStringLen; i++ )
|
if (nStringLen < STRING_MAXLEN)
|
||||||
aMemoryStream >> pBuf[ i ];
|
{
|
||||||
aMemoryStream >> nDXCount;
|
sal_Unicode* pBuf = aString.AllocBuffer( (xub_StrLen)nStringLen );
|
||||||
if ( nDXCount )
|
for ( i = 0; i < nStringLen; i++ )
|
||||||
pDXAry = new sal_Int32[ nDXCount ];
|
aMemoryStream >> pBuf[ i ];
|
||||||
for ( i = 0; i < nDXCount; i++ )
|
aMemoryStream >> nDXCount;
|
||||||
aMemoryStream >> pDXAry[ i ];
|
if ( nDXCount )
|
||||||
aMemoryStream >> nSkipActions;
|
pDXAry = new sal_Int32[ nDXCount ];
|
||||||
pOut->DrawText( aPt, aString, pDXAry );
|
for ( i = 0; i < nDXCount; i++ )
|
||||||
delete[] pDXAry;
|
aMemoryStream >> pDXAry[ i ];
|
||||||
|
aMemoryStream >> nSkipActions;
|
||||||
|
pOut->DrawText( aPt, aString, pDXAry );
|
||||||
|
delete[] pDXAry;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user