Subject: [Boost-bugs] [Boost C++ Libraries] #7202: filesystem: Function remove_all_aux() with an argument of type system::error_code& can throw exception in case of filesystem error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-07 14:11:02
#7202: filesystem: Function remove_all_aux() with an argument of type
system::error_code& can throw exception in case of filesystem error
-----------------------------------------------------------------+----------
Reporter: batsun@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.47.0 | Severity: Problem
Keywords: exception, directory_iterator_construct, error_code |
-----------------------------------------------------------------+----------
Function remove_all_aux() calls non-exception safe fs::directory_iterator
constructor (without argument of system::error_code& type).
For example, in case of free file descriptors lack in filesystem this
constructor can throw an exception "Too many open files".
The better way is to use exception-safe overload of fs::directory_iterator
constructor (with argument of system::error_code& type).
Possible fix is in attachment.
The issue is actual for any version from 1.47 to 1.50
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7202> 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:10 UTC