Opened 7 years ago

#11971 new Bugs

polygon_set_data<int32_t> has problems near INT_MAX

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

Description

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?

Attachments (1)

bug.cc (658 bytes ) - added by lopresti@… 7 years ago.
Test case demonstrating bug

Download all attachments as: .zip

Change History (1)

by lopresti@…, 7 years ago

Attachment: bug.cc added

Test case demonstrating bug

Note: See TracTickets for help on using tickets.