Subject: [Boost-bugs] [Boost C++ Libraries] #6557: directory_iterator_increment fails to throw exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-14 10:07:52
#6557: directory_iterator_increment fails to throw exception
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
When trying to construct a directory_iterator from a location that doesn't
exist anymore, no exception is thrown.
This code in directory_iterator_increment fails:
if (temp_ec)
{
it.m_imp.reset();
if (ec == 0)
BOOST_FILESYSTEM_THROW(
filesystem_error("boost::filesystem::directory_iterator::operator++",
it.m_imp->dir_entry.path().parent_path(),
error_code(BOOST_ERRNO, system_category())));
ec->assign(BOOST_ERRNO, system_category());
return;
}
it.m_imp is first reset and then used while trying to throw an exception.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6557> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC