Changeset 87b88ce in rtems


Ignore:
Timestamp:
Sep 26, 2008, 7:24:15 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
53fe0ffe
Parents:
879e252
Message:

2008-09-26 Joel Sherrill <joel.sherrill@…>

PR 1316/cpukit

  • score/src/coremsgbroadcast.c: Give error when message is too large like when sending a message. This was the documented behavior.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r879e252 r87b88ce  
     12008-09-26      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        PR 1316/cpukit
     4        * score/src/coremsgbroadcast.c: Give error when message is too large
     5        like when sending a message. This was the documented behavior.
     6
    172008-09-25      Eric Norum <norume@aps.anl.gov>
    28
  • cpukit/score/src/coremsgbroadcast.c

    r879e252 r87b88ce  
    88 *  via messages passed to queue objects.
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2008.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    6464  uint32_t                 number_broadcasted;
    6565  Thread_Wait_information *waitp;
    66   size_t                   constrained_size;
     66
     67  if ( size > the_message_queue->maximum_message_size ) {
     68    return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;
     69  }
    6770
    6871  /*
     
    9093    number_broadcasted += 1;
    9194
    92     constrained_size = size;
    93     if ( size > the_message_queue->maximum_message_size )
    94         constrained_size = the_message_queue->maximum_message_size;
    95 
    9695    _CORE_message_queue_Copy_buffer(
    9796      buffer,
    9897      waitp->return_argument_second.mutable_object,
    99       constrained_size
     98      size
    10099    );
    101100
Note: See TracChangeset for help on using the changeset viewer.