summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-01-31 17:37:26 +0000
committerKurt Zenker <kz@openoffice.org>2006-01-31 17:37:26 +0000
commit84ccc51a44e4390fa0f3f86dd1065d48bbd6eed6 (patch)
tree20fdafa1b980879b588eeecca772eb5e0e2cef98 /linguistic
parent3d45adf781d47a4482a7a599080d2532738c78bf (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.cxx14
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;