Subject: [Boost-bugs] [Boost C++ Libraries] #13425: bug in boost polygon resize
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-29 04:15:12
#13425: bug in boost polygon resize
------------------------------+---------------------
Reporter: leoyin@⦠| Owner: (none)
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.66.0 | Severity: Problem
Keywords: |
------------------------------+---------------------
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,
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13425> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2018-01-29 04:20:42 UTC