[Bug 1844] Invalid MP packet prefix for message queues

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sun Aug 21 21:27:31 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1844

--- Comment #4 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-08-21 16:27:31 CDT ---
Right and the MP code for send and receiving messages needs to honor variable
length messages which fit within that limit.

Looking at rtems/src/msgmp.c around line 122, there is code to reject a message
which is too long for the MPCI:


      if (the_packet->Prefix.length > _MPCI_table->maximum_packet_size) {
          return RTEMS_INVALID_SIZE;
      }

But that is only for send.  Do we need to do a review of MP and non-MP paths
for handing of maximum message size on send and receive?  

Should there be an error if you create a global MSGQ with a message size larger
than the MPCI can handle?

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list