Commit f28e7343 authored by loring's avatar loring

ensight reader memory bug

fix out of bounds index into string during wildcard substitution.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23758 18c085ea-50e0-402c-830e-de6fd14e8384
parent 0767e95f
......@@ -125,6 +125,9 @@ avtEnSightFileFormat::avtEnSightFileFormat(const char *fname)
// Support FORTAN output files (lines padded to end with spaces).
// Use std strings to avoid indexing bugs.
//
// Burlen Loring, Mon Jul 14 14:44:40 PDT 2014
// fix out of bounds index into string during wildcard substitution.
//
// ****************************************************************************
void
......@@ -222,7 +225,7 @@ avtEnSightFileFormat::InstantiateReader(const char *fname_c)
//
string model_name = model_line.substr(lastword);
for (size_t i = 0 ; i < model_line.size(); i++)
for (size_t i = 0 ; i < model_name.size(); ++i)
{
if (model_name[i] == '*')
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment