nuttx/libs/libc/aio
guoshichao 9efa398c69 libs/libc/aio/lio_listio: fix the heap use-after-free bug
1. the lio_sigsetup() method use a universal sighand instance across all
aiocb instances, but inside the lio_sighandler() method, if one aiocb is
handle finished, then this method will free the sighand instance that
come along with current aiocb instance. thus when handle next aiocb
instance, use-after-free crash will happen. in order to solve this
problem, we make each aiocb instance have their own sighand instance
2. make the lio_listio implementation can pass the
ltp/open_posix_testsuite/lio_listio testcases
3. the modification are referred to https://pubs.opengroup.org/onlinepubs/9699919799/functions/lio_listio.html

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-07-08 13:49:41 +08:00
..
aio.h
aio_error.c libs/libc/aio: fix aio_error compatible bug 2023-07-07 14:37:39 +03:00
aio_return.c
aio_suspend.c
lio_listio.c libs/libc/aio/lio_listio: fix the heap use-after-free bug 2023-07-08 13:49:41 +08:00
Make.defs