Boost C++ Libraries: Ticket #7050: Invalid memory write bug in lexing_exception https://svn.boost.org/trac10/ticket/7050 <p> In file boost/wave/cpplexer/cpplexer_exceptions.hpp </p> <pre class="wiki">lexing_exception(char const *what_, error_code code, int line_, int column_, char const *filename_) throw() : cpplexer_exception(line_, column_, filename_), level(severity_level(code)), code(code) { unsigned int off = 0; while (off &lt; sizeof(buffer) &amp;&amp; *what_) buffer[off++] = *what_++; buffer[off] = 0; } </pre><p> If value of <strong>off is 511</strong>, then Invalid memory write will occur at <strong> buffer[off] = 0;</strong>.<br />Attached patch is the fix for it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7050 Trac 1.4.3 g.gupta@… Fri, 29 Jun 2012 09:15:20 GMT attachment set https://svn.boost.org/trac10/ticket/7050 https://svn.boost.org/trac10/ticket/7050 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">cpplexer_exceptions.hpp_patch</span> </li> </ul> <p> Patch file for the reported Bug. </p> Ticket Hartmut Kaiser Fri, 29 Jun 2012 18:53:18 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7050#comment:1 https://svn.boost.org/trac10/ticket/7050#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79174" title="Wave: fixed #7050: Invalid memory write bug in lexing_exception">[79174]</a>) Wave: fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7050" title="#7050: Bugs: Invalid memory write bug in lexing_exception (closed: fixed)">#7050</a>: Invalid memory write bug in lexing_exception </p> Ticket Hartmut Kaiser Fri, 29 Jun 2012 18:55:09 GMT <link>https://svn.boost.org/trac10/ticket/7050#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7050#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79175" title="Wave: fixed #7050: Invalid memory write bug in lexing_exception">[79175]</a>) Wave: fixed <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7050" title="#7050: Bugs: Invalid memory write bug in lexing_exception (closed: fixed)">#7050</a>: Invalid memory write bug in lexing_exception </p> </description> <category>Ticket</category> </item> </channel> </rss>