Subject: [Boost-bugs] [Boost C++ Libraries] #10070: Boost.Coroutine tests mmap return value in a wrong way
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-26 08:07:13
#10070: Boost.Coroutine tests mmap return value in a wrong way
---------------------------+------------------------------
Reporter: windoze.net@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.54.0
Severity: Problem | Keywords:
---------------------------+------------------------------
boost_1_55_0/libs/coroutine/src/detail/standard_stack_allocator_posix.cpp:125
MMAP(2) returns MAP_FAILED on fail, which is (void *)(-1), not NULL or 0.
The line should be change to:
if (limit == (void *)(-1) /*MAP_FAILED*/) throw std::bad_alloc();
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10070> 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