This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13740] New: lio_listio: when pass aiocb with a invalid aio_lio_opcode, __error_code is not set


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]