Boost logo

Geometry :

Subject: [geometry] invalid iterator dereference in traverse.hpp
From: Vladimir Petrovic (vpetrovic_at_[hidden])
Date: 2013-01-22 12:23:49


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.

 

regards,

Vladimir

 

 

--
Vladimir Petrovic | vpetrovic_at_[hidden]
think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany
http://www.think-cell.com | phone +49 30 666473-10 | US phone +1 800 891 8091
Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl





Geometry list run by mateusz at loskot.net