[Boost-bugs] [Boost C++ Libraries] #5354: message_queue doesn't work if size of message < max size of messages

Subject: [Boost-bugs] [Boost C++ Libraries] #5354: message_queue doesn't work if size of message < max size of messages
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-22 15:18:04


#5354: message_queue doesn't work if size of message < max size of messages
------------------------------+---------------------------------------------
 Reporter: remig@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.46.0 | Severity: Problem
 Keywords: message_queue |
------------------------------+---------------------------------------------
 message_queue doesn't work if size of message < max size of messages;

 In message_queue.hpp I've found the following lines:

 ...
    //Check if buffer is big enough for any message
    if (buffer_size < p_hdr->m_max_msg_size) {
       throw interprocess_exception(size_error);
    }
 ...

 I think it should be (buffer_size > p_hdr->m_max_msg_size)

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