Boost C++ Libraries: Ticket #9324: boost\include\boost-1_53\boost\asio\detail\impl\signal_set_service.ipp Off by One Error https://svn.boost.org/trac10/ticket/9324 <p> In the function </p> <pre class="wiki">boost::system::error_code signal_set_service::add( signal_set_service::implementation_type&amp; impl, int signal_number, boost::system::error_code&amp; ec) </pre><p> The guard statement </p> <pre class="wiki">// Check that the signal number is valid. if (signal_number &lt; 0 || signal_number &gt; max_signal_number) { ec = boost::asio::error::invalid_argument; return ec; } </pre><p> has an Off-by-One error. </p> <p> The guard statement should read </p> <pre class="wiki">// Check that the signal number is valid. if (signal_number &lt; 0 || signal_number &gt;= max_signal_number) { ec = boost::asio::error::invalid_argument; return ec; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9324 Trac 1.4.3 Shailesh Venugopal <svenugopal@…> Wed, 30 Oct 2013 21:45:40 GMT attachment set https://svn.boost.org/trac10/ticket/9324 https://svn.boost.org/trac10/ticket/9324 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">signal_set_service.ipp.patch</span> </li> </ul> <p> Fix for off by one error </p> Ticket Shailesh Venugopal <svenugopal@…> Wed, 30 Oct 2013 21:46:36 GMT component changed; owner set https://svn.boost.org/trac10/ticket/9324#comment:1 https://svn.boost.org/trac10/ticket/9324#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket