diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-19 18:39:56 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-19 19:35:54 +0100 |
commit | 989c7ce9a88aa6e9a3bb2773117c6ad5ee204ef6 (patch) | |
tree | aeea8b536bd7d4dc6c35cb8a308169cd37a93802 /sc | |
parent | 70068f428d570a4ee00c682f1b8e12de395a8be4 (diff) |
CID#1158211: out-of-bounds access
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/datastream.cxx | 2 |
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 ]; } |