From: eap Date: Tue, 25 Jul 2006 08:49:59 +0000 (+0000) Subject: fix access out of array bounds in FunctionTable::findBounds() X-Git-Tag: For_OCT_611~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dbdb0fce59afcffbfff06ff11b57a058853db81a;p=modules%2Fsmesh.git fix access out of array bounds in FunctionTable::findBounds() --- diff --git a/src/StdMeshers/StdMeshers_Distribution.cxx b/src/StdMeshers/StdMeshers_Distribution.cxx index ca8338d03..4fd04bea9 100644 --- a/src/StdMeshers/StdMeshers_Distribution.cxx +++ b/src/StdMeshers/StdMeshers_Distribution.cxx @@ -145,7 +145,7 @@ double FunctionTable::integral( const double a, const double b ) const bool FunctionTable::findBounds( const double x, int& x_ind_1, int& x_ind_2 ) const { - int n = myData.size(); + int n = myData.size() / 2; if( n==0 || x