[Boost-bugs] [Boost C++ Libraries] #10058: Null pointer access in once

Subject: [Boost-bugs] [Boost C++ Libraries] #10058: Null pointer access in once
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-19 09:15:17


#10058: Null pointer access in once
------------------------------+----------------------
 Reporter: michael.kaes@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------
 There is the possibility that the call to malloc in
 {{{
 thread_detail::uintmax_atomic_t& get_once_per_thread_epoch()
 }}}
 in the file once.cpp returns null.

 This would lead to undefined behavior as this pointer is later on
 dereferenced.

 Attached is a patch that adds a check for the null pointer and throws an
 exception in this case.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10058>
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:16 UTC