[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Jan 19 10:36:22 PST 2014
sc/source/ui/docshell/datastream.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 989c7ce9a88aa6e9a3bb2773117c6ad5ee204ef6
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Jan 19 18:39:56 2014 +0100
CID#1158211: out-of-bounds access
diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx
index 04605e4..a2fa4e4 100644
--- a/sc/source/ui/docshell/datastream.cxx
+++ b/sc/source/ui/docshell/datastream.cxx
@@ -51,7 +51,7 @@ static double fTimes[DEBUG_TIME_MAX] = { 0.0, 0.0, 0.0 };
double datastream_get_time(int nIdx)
{
- if( nIdx < 0 || nIdx > (int)SAL_N_ELEMENTS( fTimes ) )
+ if( nIdx < 0 || nIdx >= (int)SAL_N_ELEMENTS( fTimes ) )
return -1;
return fTimes[ nIdx ];
}
More information about the Libreoffice-commits
mailing list