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/13336] New: Add missing buffer termination in readlinkat() unit test


http://sourceware.org/bugzilla/show_bug.cgi?id=13336

             Bug #: 13336
           Summary: Add missing buffer termination in readlinkat() unit
                    test
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: thomas.jarosch@intra2net.com
    Classification: Unclassified


Created attachment 6028
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6028
Patch to fix the issue

>From the patch:

Add missing buffer termination in readlinkat() unit test

readlinkat() never zero terminates the buffer.

Also make sure we don't overflow the buffer if readlinkat() returns
the full size of the buffer by reducing the supplied size.

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