[geos-devel] [Buffer] Assertion failure causes crash in RightmostEdgeFinder::findEdge()

Stephen Wong swongu at gmail.com
Mon Mar 31 18:23:46 EDT 2008


I have been using the geos library for buffer functions and found a crash
case.  When I stepped into the code, I found that
RightmostEdgeFinder::findEdge() crashes when no forward DirectedEdge is
input into the function.  The function crashes because of a null pointer
reference error (minDe=0x0) later in the code.  The assertion failure that
catches this is on line 77:


Is this case supposed to be possible?  I also found that
calls findEdge(), and a comment in the code says that "We are assuming that
dirEdgeList contains *at least* ONE forward DirectedEdge".  Again, what
happens if the DirectedEdge list does not?  I don't think it should crash...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20080331/8371c5d5/attachment.html

More information about the geos-devel mailing list