diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-01-31 17:37:26 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-01-31 17:37:26 +0000 |
commit | 84ccc51a44e4390fa0f3f86dd1065d48bbd6eed6 (patch) | |
tree | 20fdafa1b980879b588eeecca772eb5e0e2cef98 /linguistic | |
parent | 3d45adf781d47a4482a7a599080d2532738c78bf (diff) |
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
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dicimp.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 06cb6e7dcbac..b0fa538b414c 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -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 Wortlnge - { - 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; |