This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13740] New: lio_listio: when pass aiocb with a invalid aio_lio_opcode, __error_code is not set
- From: "freeordie.k at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 24 Feb 2012 09:25:09 +0000
- Subject: [Bug libc/13740] New: lio_listio: when pass aiocb with a invalid aio_lio_opcode, __error_code is not set
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13740
Bug #: 13740
Summary: lio_listio: when pass aiocb with a invalid
aio_lio_opcode, __error_code is not set
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: freeordie.k@gmail.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
when pass aiocb with a invalid aio_lio_opcode, the values gets passed down to
the AIO layer.
It checks aio_lio_opcode in sysdeps/pthread/aio_misc.c, when aio_lio_opcode is
not valid, it set aiocb.__return_value but doesn't set __error_code.
Line 584:
else
{
/* This is an invalid opcode. */
aiocbp->aiocb.__return_value = -1;
__set_errno (EINVAL);
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.