Boost C++ Libraries: Ticket #12180: Date time parsing with a particular format string dereferences an end iterator https://svn.boost.org/trac10/ticket/12180 <p> Using the "%s" format flag with an input string that does not end with fractional seconds leads to dereferencing of an "end" iterator, causing memory corruption. </p> <p> Sample code: </p> <pre class="wiki">std::string fmt = "%Y-%m-%d %H:%M:%s"; std::stringstream ss; ss.imbue(std::locale(ss.getloc(), new boost::posix_time::time_input_facet(fmt))); ss &lt;&lt; "2010-05-10 10:03:05"; boost::posix_time::ptime pt; ss &gt;&gt; pt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12180 Trac 1.4.3 anonymous Fri, 06 May 2016 10:26:44 GMT <link>https://svn.boost.org/trac10/ticket/12180#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12180#comment:1</guid> <description> <p> See <a class="missing wiki">GitHub</a> PR <a class="ext-link" href="https://github.com/boostorg/date_time/pull/32"><span class="icon">​</span>https://github.com/boostorg/date_time/pull/32</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 09 May 2016 13:24:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12180#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12180#comment:2</guid> <description> <p> Applied the PR. Will walt for tests to cycle. </p> </description> <category>Ticket</category> </item> </channel> </rss>