sc/source/ui/docshell/datastream.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 989c7ce9a88aa6e9a3bb2773117c6ad5ee204ef6
Author: Markus Mohrhard <markus.mohrh...@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 ];
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to