RTEMS | testsuites/fstests: The tftpfs read loop never calls read() (#5713)

Sebastian Huber (@sebhub) gitlab at rtems.org
Mon Aug 17 02:24:06 UTC 2026



Issue created by Sebastian Huber: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5713



The read loop of the tftpfs test is bounded by a byte budget of type `size_t`,
and every test passes `SIZE_MAX` to say that there is no budget. Commit
`bd2055cf5a` cast the budget to `ssize_t` to silence a sign compare warning,
which turned `SIZE_MAX` into `-1`, so the loop condition is false right away and
`read()` is never called.

Found while running the full test suite on eleven simulators. This description
was created with Claude Code assistance.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5713
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-c9dinlwwih2zalr1d1if4avs2-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/20260817/ef3c26ad/attachment.htm>


More information about the bugs mailing list