Boost C++ Libraries: Ticket #10058: Null pointer access in once https://svn.boost.org/trac10/ticket/10058 <p> There is the possibility that the call to malloc in </p> <pre class="wiki">thread_detail::uintmax_atomic_t&amp; get_once_per_thread_epoch() </pre><p> in the file once.cpp returns null. </p> <p> This would lead to undefined behavior as this pointer is later on dereferenced. </p> <p> Attached is a patch that adds a check for the null pointer and throws an exception in this case. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10058 Trac 1.4.3 michael.kaes@… Mon, 19 May 2014 09:16:00 GMT attachment set https://svn.boost.org/trac10/ticket/10058 https://svn.boost.org/trac10/ticket/10058 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">once_possible_null_pointer.patch</span> </li> </ul> <p> Patch agains the current git repo </p> Ticket viboes Fri, 30 May 2014 20:51:27 GMT owner, status changed https://svn.boost.org/trac10/ticket/10058#comment:1 https://svn.boost.org/trac10/ticket/10058#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sat, 31 May 2014 16:22:14 GMT milestone changed https://svn.boost.org/trac10/ticket/10058#comment:2 https://svn.boost.org/trac10/ticket/10058#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/cb8a4a27bb4c0971ac2063286a48753f228f5c61"><span class="icon">​</span>https://github.com/boostorg/thread/commit/cb8a4a27bb4c0971ac2063286a48753f228f5c61</a> </p> Ticket viboes Sun, 08 Jun 2014 10:17:38 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10058#comment:3 https://svn.boost.org/trac10/ticket/10058#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/0bd10b7244ef4545d79f636ddf95b0be9c5ac043"><span class="icon">​</span>https://github.com/boostorg/thread/commit/0bd10b7244ef4545d79f636ddf95b0be9c5ac043</a> </p> Ticket