Re: [Boost-bugs] [Boost C++ Libraries] #6561: pool.free() crashes if given a null pointer

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6561: pool.free() crashes if given a null pointer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-05-12 21:30:05


#6561: pool.free() crashes if given a null pointer
------------------------------------------+--------------------------
  Reporter: Étienne Dupuis <e.dupuis@…> | Owner: John Maddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: pool
   Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+--------------------------

Comment (by James E. King, III):

 I can confirm this is still an issue in 1.67.0:
 {{{
 boost_at_ee79ac718c30:/boost/libs/pool/test$ cat test_bug_6561.cpp
 /* Copyright (C) 2018 James E. King III
 *
 * Use, modification and distribution is subject to the
 * Boost Software License, Version 1.0. (See accompanying
 * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
 */

 // Test of bug #6561 (https://svn.boost.org/trac/boost/ticket/6561)

 #include <boost/assert.hpp>
 #include <boost/pool/simple_segregated_storage.hpp>
 #include <boost/smart_ptr/scoped_ptr.hpp>

 int main()
 {
     boost::simple_segregated_storage<std::size_t> storage;
     storage.free(0);
     return 0;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/6561#comment:6>
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 : 2018-05-12 21:36:08 UTC