[Boost-bugs] [Boost C++ Libraries] #11971: polygon_set_data<int32_t> has problems near INT_MAX

Subject: [Boost-bugs] [Boost C++ Libraries] #11971: polygon_set_data<int32_t> has problems near INT_MAX
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-09 22:09:56


#11971: polygon_set_data<int32_t> has problems near INT_MAX
------------------------------+----------------------
 Reporter: lopresti@… | Owner: ljsimons
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: polygon
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------
 When I try to use boost::polygon::operators::operator& to AND a polygon
 set with a very large rectangle (i.e. something close to
 (INT_MIN,INT_MIN,INT_MAX,INT_MAX)) -- which should be the identity
 operation -- the internal data structure appears to get corrupted.

 I am attaching a simple test case to illustrate the problem. Note that
 using an upper bound of INT_MAX-100 still fails, but INT_MAX/2 works as
 expected.

 I do not see any mention of limitations on the range of integer
 coordinates in the documentation. Should there be one?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11971>
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 : 2017-02-16 18:50:19 UTC