public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13740] New: lio_listio: when pass aiocb with a invalid aio_lio_opcode, __error_code is not set
@ 2012-02-24  9:25 freeordie.k at gmail dot com
  2012-02-24 14:07 ` [Bug libc/13740] " carlos at systemhalted dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: freeordie.k at gmail dot com @ 2012-02-24  9:25 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-08-27 22:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24  9:25 [Bug libc/13740] New: lio_listio: when pass aiocb with a invalid aio_lio_opcode, __error_code is not set freeordie.k at gmail dot com
2012-02-24 14:07 ` [Bug libc/13740] " carlos at systemhalted dot org
2012-02-24 17:44 ` carlos at systemhalted dot org
2012-02-28  8:36 ` freeordie.k at gmail dot com
2012-02-28  8:39 ` freeordie.k at gmail dot com
2012-02-28 16:16 ` carlos at systemhalted dot org
2014-06-26 15:16 ` fweimer at redhat dot com
2015-08-27 22:07 ` [Bug librt/13740] " jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).