Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6945: Handle leak in filesystem::resize_file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-06 03:22:40
#6945: Handle leak in filesystem::resize_file
---------------------------------+------------------------------------------
Reporter: foryousail@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------+------------------------------------------
Comment (by Kaylyn Bogle <code@â¦>):
In libs/filesystem/src/operations.cpp
{{{
#!C++
return handle != INVALID_HANDLE_VALUE
&& ::SetFilePointerEx(handle, sz, 0, FILE_BEGIN)
&& ::SetEndOfFile(handle)
&& ::CloseHandle(handle);
}}}
`SetEndOfFile` is failing and short-circuiting before `CloseHandle` is
called.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6945#comment:1> 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