INTEGRATION: CWS tl17 (1.14.14); FILE MERGED
2005/12/09 12:00:50 tl 1.14.14.1: #127056# added check for a possible bufferflow that may only happen if the header of the '.dic' files does match the expectations
This commit is contained in:
parent
3d45adf781
commit
84ccc51a44
1 changed files with 4 additions and 10 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: dicimp.cxx,v $
|
||||
*
|
||||
* $Revision: 1.14 $
|
||||
* $Revision: 1.15 $
|
||||
*
|
||||
* last change: $Author: rt $ $Date: 2005-09-07 19:50:14 $
|
||||
* last change: $Author: kz $ $Date: 2006-01-31 18:37:25 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -199,17 +199,11 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL)
|
|||
if ((nErr = pStream->GetError()))
|
||||
return nErr;
|
||||
|
||||
#ifdef NO_MORE
|
||||
if( nLen > ICMAX ) // ICMAX = 64 max ICS Wortlänge
|
||||
{
|
||||
bDirty = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
sal_Char aWordBuf[ BUFSIZE ];
|
||||
BOOL bNegativ;
|
||||
|
||||
if (nLen >= BUFSIZE)
|
||||
return nErr;
|
||||
pStream->Read(aWordBuf, nLen);
|
||||
if ((nErr = pStream->GetError()))
|
||||
return nErr;
|
||||
|
|
Loading…
Reference in a new issue