Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Possible bug in the arrangement implementation
- Date: Mon, 2 Sep 2013 18:47:17 +0300
Thank you for the report.
I've just applied the fix. ____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
On Sat, Aug 31, 2013 at 1:30 AM, ax487 <> wrote:
Hello all,
I believe that I have found a bug in the arrangement implementation of
CGAL 4.2, specifically in the file Arrangement_on_surface_2_impl.h,
line 1142:
DHalfedge *prev1 = _locate_around_vertex (_vertex (v1), cv, ind1);
CGAL_assertion_code (
DFace *f1 = prev1->is_on_inner_ccb() ?
prev1->inner_ccb()->face() :
prev1->outer_ccb()->face();
);
CGAL_assertion_msg
(prev1 != NULL,
"The inserted curve cannot be located in the arrangement.");
The problem seems to be that prev1->is_on_inner_ccb() is called before
it is made sure that prev1 != NULL. This results in a segfault if prev1
== NULL (which does happen). I would appreciate it if you could just
interchange the assertion messsage and the assertion code which resolves
the issue nicely.
ax487
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- Re: [cgal-discuss] Possible bug in the arrangement implementation, Efi Fogel, 09/02/2013
Archive powered by MHonArc 2.6.18.