Opened 5 years ago

Last modified 5 years ago

#13425 new Bugs

bug in boost polygon resize

Reported by: leoyin@… Owned by: Lucanus Simonson
Milestone: To Be Determined Component: polygon
Version: Boost 1.66.0 Severity: Problem
Keywords: Cc:

Description

The function:

void handleResizingEdge45() in polygon_45_set_data.hpp:943

When resizing a vertical/horizontal edge, the code construct a rectangle_data<int> directly instead of using Unit template. When the coordinate_traits<int64_t> is specialized, this easily causes the integer overflow and lead to bogus result.

Change int to Unit would be the simple fix.

Thanks,

Change History (1)

comment:1 by Kohei Takahashi, 5 years ago

Component: Nonepolygon
Owner: set to Lucanus Simonson
Note: See TracTickets for help on using tickets.