#34 stack overflow with class FTContour in FTContour.cpp

closed-fixed
nobody
None
5
2011-05-21
2011-05-16
Anonymous
No

FTContour.cpp
void FTContour::buildFrontOutset(float outset)
{
// frontPointList.clear(); uncomment this line to protect againt stack overflow.
for(size_t i = 0; i < PointCount(); ++i)
{
AddFrontPoint(Point(i) + Outset(i) * outset);
}
}

void FTContour::buildBackOutset(float outset)
{
// backPointList.clear(); uncomment this line to protect againt stack overflow.
for(size_t i = 0; i < PointCount(); ++i)
{
AddBackPoint(Point(i) + Outset(i) * outset);
}
}

Discussion

  • Sam Hocevar

    Sam Hocevar - 2011-05-21

    Thanks. Fixed in [1266].

     
  • Sam Hocevar

    Sam Hocevar - 2011-05-21
    • status: open --> closed-fixed
     

Log in to post a comment.