Boost C++ Libraries: Ticket #10417: Possible signed integer overflow in boost/polygon/detail/scan_arbitrary.hpp https://svn.boost.org/trac10/ticket/10417 <p> Caught by clang: </p> <pre class="wiki">boost/polygon/detail/scan_arbitrary.hpp:174:33: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int' </pre><p> as a result of <code> min_y - 1 </code> where min_y = -2147483648 = std::numeric_limits&lt;int&gt;::min() </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10417 Trac 1.4.3 Andrii Sydorchuk Mon, 29 Sep 2014 19:39:41 GMT owner, status changed https://svn.boost.org/trac10/ticket/10417#comment:1 https://svn.boost.org/trac10/ticket/10417#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Lucanus Simonson</span> to <span class="trac-author">Andrii Sydorchuk</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Andrii Sydorchuk Wed, 17 Dec 2014 20:57:26 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/10417#comment:2 https://svn.boost.org/trac10/ticket/10417#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> </ul> <p> Thanks you for the report! </p> <p> I fix this particular issue and it was merged to the master branch of <a class="ext-link" href="https://github.com/boostorg/polygon"><span class="icon">​</span>https://github.com/boostorg/polygon</a>. The issue will be also fixed in Boost 1.58 release. </p> <p> Please notice that in general it might be not safe to use -2147483648 for the coordinate as there is no +2147483648 value for int32 signed type. </p> Ticket