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/16917] New: libc6: ptsname_r() can use uninitialized memory


https://sourceware.org/bugzilla/show_bug.cgi?id=16917

            Bug ID: 16917
           Summary: libc6: ptsname_r() can use uninitialized memory
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: aurelien at aurel32 dot net
          Reporter: aurelien at aurel32 dot net
                CC: drepper.fsp at gmail dot com

If the fd refers to a terminal device, but not a pty master, the TIOCGPTN ioctl
returns with ENOTTY. This error is not caught, and the possibly undefined
buffer passed to ptsname_r is sent directly to the stat64 syscall.

For more details, see ttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741482

-- 
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]