[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patches] lio_listio() doesn't validate the aio_lio_opcode?



Hi All,

If pass a invalid aio_lio_opcode to lio_listio() with mode LIO_NOWAIT, it return 0 which means success. Is this the proper action for invalid aio_lio_opcode?

I check the source code ./sysdeps/pthread/lio_listio.c Line 81:

if (list[cnt] != NULL && list[cnt]->aio_lio_opcode != LIO_NOP)

it just checks aio_lio_opcode is not LIO_NOP then enqueue the request? I wonder this is buggy.

Anyone can help about this? Thanks.

Regards,
Kai
_______________________________________________
Patches mailing list
Patches@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/patches