From dbdb0fce59afcffbfff06ff11b57a058853db81a Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 25 Jul 2006 08:49:59 +0000 Subject: [PATCH 1/1] fix access out of array bounds in FunctionTable::findBounds() --- src/StdMeshers/StdMeshers_Distribution.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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