提交 a494171a 编写于 作者: R Rich Felker

fix invalid access in aio notification

issue found and patch provided by Jens Gustedt. after the atomic store
to the error code field of the aiocb, the application is permitted to
free or reuse the storage, so further access is invalid. instead, use
the local copy that was already made.
上级 8600849d
......@@ -51,7 +51,7 @@ static void *io_thread(void *p)
__aio_wake();
switch (cb->aio_sigevent.sigev_notify) {
switch (sev.sigev_notify) {
case SIGEV_SIGNAL:
notify_signal(&sev);
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册