Boost logo

Geometry :

Subject: Re: [geometry] invalid iterator dereference in traverse.hpp
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-02-02 14:49:55

On 22-1-2013 18:23, Vladimir Petrovic wrote:
> Hi,
> There is a small issue with the call to debug_traverse() in
> \boost\geometry\algorithms\detail\overlay\traverse.hpp at line 359.
> The issue is that current_iit might point to turn.operations.end so
> dereference operation is invalid. In some cases this is caught by the
> microsoft pageheap debugger even though BOOST_GEOMETRY_DEBUG_TRAVERSE
> is not defined and debug_traverse() is nop.
> The following patch is one way to fix the issue.

Hi Vladimir,

Thanks for your patch! Good catch. It is applied.

Regards, Barend

Geometry list run by mateusz at