Boost C++ Libraries: Ticket #2564: buffer overrun when reported error message is greater than 512 https://svn.boost.org/trac10/ticket/2564 <p> Hello, </p> <p> At this location <a class="ext-link" href="https://svn.boost.org/trac/boost/browser/trunk/boost/test/impl/execution_monitor.ipp#L203"><span class="icon">​</span>https://svn.boost.org/trac/boost/browser/trunk/boost/test/impl/execution_monitor.ipp#L203</a> Instead of : </p> <blockquote> <p> BOOST_TEST_VSNPRINTF( buf, sizeof(buf), format, args ); </p> </blockquote> <p> The code should probably look like : </p> <blockquote> <p> BOOST_TEST_VSNPRINTF( buf, sizeof(buf)-1, format, args ); buf[sizeof(buf)-1] = 0; </p> </blockquote> <p> Thanks ! MAT. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2564 Trac 1.4.3 Gennadiy Rozental Fri, 19 Dec 2008 07:58:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2564#comment:1 https://svn.boost.org/trac10/ticket/2564#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket anonymous Wed, 01 Apr 2009 12:58:47 GMT <link>https://svn.boost.org/trac10/ticket/2564#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2564#comment:2</guid> <description> <p> The fix has not only skipped 1.38 contrary to what is stated in the 'milestone' field but it also appears not to have been merged to the release branch and might skip 1.39 too. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 29 May 2009 23:09:23 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/2564#comment:3 https://svn.boost.org/trac10/ticket/2564#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Can you please merge this fix into the release branch ? </p> Ticket anonymous Mon, 10 Aug 2009 07:40:27 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/2564#comment:4 https://svn.boost.org/trac10/ticket/2564#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</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">Boost 1.38.0</span> → <span class="trac-field-new">Boost 1.40.0</span> </li> </ul> <p> It's been merged to the release branch at last, see <a class="ext-link" href="http://svn.boost.org/svn/boost/branches/release/boost/test/impl/execution_monitor.ipp"><span class="icon">​</span>http://svn.boost.org/svn/boost/branches/release/boost/test/impl/execution_monitor.ipp</a> </p> Ticket