Boost C++ Libraries: Ticket #4654: restricted_filter doesn't seek with the correct offset https://svn.boost.org/trac10/ticket/4654 <p> The class restricted_filter defined in detail/restrict_impl.hpp fails to seek properly due to a small, but significant, error in its seek member function. </p> <p> The patch fixes this bug by changing the offset argument to the seek function of the underlying filter from </p> <pre class="wiki">next </pre><p> to </p> <pre class="wiki">next - pos_ </pre><p> as the seek direction is BOOST_IOS::cur and not BOOST_IOS::beg. </p> <p> In other words, the bug causes restricted filters to seek relative to the current pointer using offsets relative to the beginning. If you want to seek forward by 10 byte at position 5000, it'll seek forward by 5010 instead of 10. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4654 Trac 1.4.3 la06@… Fri, 17 Sep 2010 00:12:57 GMT attachment set https://svn.boost.org/trac10/ticket/4654 https://svn.boost.org/trac10/ticket/4654 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patchfile.patch</span> </li> </ul> Ticket la06@… Fri, 17 Sep 2010 11:11:24 GMT milestone set https://svn.boost.org/trac10/ticket/4654#comment:1 https://svn.boost.org/trac10/ticket/4654#comment:1 <ul> <li><strong>milestone</strong> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket Marshall Clow Wed, 19 Jan 2011 19:28:12 GMT <link>https://svn.boost.org/trac10/ticket/4654#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4654#comment:2</guid> <description> <p> Any chance you can contribute a test case for this? </p> </description> <category>Ticket</category> </item> </channel> </rss>