Subject: [Boost-bugs] [Boost C++ Libraries] #12604: neither scoped_array nor checked_delete do check for nullptr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-11 10:15:47
#12604: neither scoped_array nor checked_delete do check for nullptr
------------------------------+-----------------------
Reporter: steinbac@⦠| Owner: pdimov
Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.62.0 | Severity: Problem
Keywords: |
------------------------------+-----------------------
Hi, I recently ran across a problem where a scoped_array::reset was called
with a nullptr argument. As this is not checked within scoped_array::reset
or further down the callstack in scoped_array::swap, a checked_delete was
called on a nullptr and threw a Segfault. For me, I'd consider this a bug
as scoped_array assumes ownership and hence is responsible for delete it's
allocated memory. the problem occurred during an ill-posed usage of the
boost utf as documented in the file attached.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12604> 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:20 UTC