Loris Nardo created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5109
## Summary Checking the code of `open`, I noticed that when `O_TRUNC` is passed, the iop flag is updated to include `LIBIO_FLAGS_OPEN` and then ftruncate is called on the file descriptor of the iop. In doing so, there is a small time window in which the file descriptor can be accessed by other threads and can perform some operation on the file before the truncate has been completed or even started. ## Steps to reproduce -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5109 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
