Opened 7 years ago

Closed 7 years ago

#11709 closed Bugs (fixed)

is_simple segfault

Reported by: flippmoke@… Owned by: Barend Gehrels
Milestone: Boost 1.60.0 Component: geometry
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc: mkaravel

Description

I am getting a segfault when is_simple with a line geometry that is empty.

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 run 0x000000010835aa89 bool boost::geometry::detail::is_simple::has_self_intersections<mapnik::geometry::line_string<double> >(mapnik::geometry::line_string<double> const&) + 57 1 run 0x000000010835a26f bool mapnik::geometry::detail::geometry_is_simple::operator()<double>(mapnik::geometry::line_string<double> const&) const + 287

Change History (3)

comment:1 by flippmoke@…, 7 years ago

This segfault also affects mutliline strings

comment:2 by flippmoke@…, 7 years ago

I mean multi-line geometries :P

comment:3 by mkaravel, 7 years ago

Cc: mkaravel added
Milestone: To Be DeterminedBoost 1.60.0
Resolution: fixed
Status: newclosed

Indeed is_simple was crashing with an empty linestring as input. This has been fixed as part of GitHub PR 334: https://github.com/boostorg/geometry/pull/334.

Note: See TracTickets for help on using tickets.