RTEMS | cpukit/rtems/src: Guard against zero-length in rtems_port_create (!1349)
Avi Weiss (@thnkslprpt)
gitlab at rtems.org
Thu Jul 16 15:29:56 UTC 2026
Avi Weiss commented on a discussion on testsuites/sptests/spport_err01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1349#note_154703
> );
> puts( "TA1 - rtems_port_create - null id - RTEMS_INVALID_ADDRESS" );
>
> + status = rtems_port_create(
> + Port_name[ 1 ],
> + Internal_port_area,
> + External_port_area,
> + 0,
> + &Junk_id
> + );
> + fatal_directive_status(
> + status,
> + RTEMS_INVALID_SIZE,
> + "rtems_port_create with zero length"
> + );
> + puts( "TA1 - rtems_port_create - zero length - RTEMS_INVALID_SIZE" );
Yes - good point @joel
Updated it now to match all the changes.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1349#note_154703
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-4zvk02v8rgknfyo7ec31qncmb-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260716/602be910/attachment-0001.htm>
More information about the bugs
mailing list