summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-19 18:39:56 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-19 19:35:54 +0100
commit989c7ce9a88aa6e9a3bb2773117c6ad5ee204ef6 (patch)
treeaeea8b536bd7d4dc6c35cb8a308169cd37a93802 /sc
parent70068f428d570a4ee00c682f1b8e12de395a8be4 (diff)
CID#1158211: out-of-bounds access
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/datastream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx
index 04605e4dfe72..a2fa4e474287 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 ];
}