You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above logic in shared/src/osapi-queue.c uses OS_QUEUE_INVALID_SIZE If the queue size is greater than the buffer provided.
if (size<queue->max_size)
{
/* ** The buffer that the user is passing in is potentially too small */*size_copied=0;
return_code=OS_QUEUE_INVALID_SIZE;
}
To Reproduce
Steps to reproduce the behavior:
Visual inspection.
Expected behavior
Follow the posix logic.
Code snips
See above
System observed on:
MIcroblaze
Additional context
Add any other context about the problem here.
Reporter Info
Sam Price
The text was updated successfully, but these errors were encountered:
Describe the bug
Im using queues to send variable length messages.
RTEMS queue get returns an error if the message queue returned size is not the max buffer size.
https://github.com/nasa/osal/blob/main/src/os/rtems/src/os-impl-queues.c#L235
This doesn't match the posix implementation.
https://github.com/nasa/osal/blob/main/src/os/posix/src/os-impl-queues.c#L194
The above logic in
shared/src/osapi-queue.c
usesOS_QUEUE_INVALID_SIZE
If the queue size is greater than the buffer provided.To Reproduce
Steps to reproduce the behavior:
Visual inspection.
Expected behavior
Follow the posix logic.
Code snips
See above
System observed on:
MIcroblaze
Additional context
Add any other context about the problem here.
Reporter Info
Sam Price
The text was updated successfully, but these errors were encountered: