RTEMS | posix aio functions can use (aio_request_type *)->suspendcbp unitialized (#5421)
Allan Hessenflow (@allanhessenflow)
gitlab at rtems.org
Wed Jan 14 00:57:05 UTC 2026
Allan Hessenflow commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5421#note_138613
Here's one method of fixing it:
```
diff --git a/cpukit/posix/src/aio_misc.c b/cpukit/posix/src/aio_misc.c
index 129836a918..8f986ffebe 100644
--- a/cpukit/posix/src/aio_misc.c
+++ b/cpukit/posix/src/aio_misc.c
@@ -203,6 +203,7 @@ rtems_aio_request *init_write_req( struct aiocb* aiocbp )
req->aiocbp = aiocbp;
req->op_type = AIO_OP_WRITE;
req->listcbp = NULL;
+ req->suspendcbp = NULL;
return req;
}
@@ -250,6 +251,7 @@ rtems_aio_request *init_read_req( struct aiocb* aiocbp )
req->aiocbp = aiocbp;
req->op_type = AIO_OP_READ;
req->listcbp = NULL;
+ req->suspendcbp = NULL;
return req;
}
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5421#note_138613
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260114/0c1b628e/attachment-0001.htm>
More information about the bugs
mailing list