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
commit436eba6201c5c9012c9145a95a78b73d9c42b182 (patch)
tree8d48cdc6efd3480a67592a06b1e7fc3c503a1c28 /linguistic
parentf0fea9691beb15438fab25a17bc902a052a8415d (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 aab94a5fde..f60cd67595 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 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;