public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2337] New: libio in wide mode deallocates user supplied buffer
@ 2006-02-14 17:05 Petr dot Salinger at seznam dot cz
  2006-02-14 17:07 ` [Bug libc/2337] " Petr dot Salinger at seznam dot cz
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Petr dot Salinger at seznam dot cz @ 2006-02-14 17:05 UTC (permalink / raw)
  To: glibc-bugs

Hello.

Please try to run attached source under "strace -e trace=mmap2,munmap"
At the end there will be something like:

hello.
buf = 0x8049160, fp = 0x804a008,  fp+delta = 0x804a04f
munmap(0x804a04f, 4096)                 = -1 EINVAL (Invalid argument)

On file close libio tries to free buffer, which have not been allocated by libio.
In first case it is internal 1byte buffer, but it can be also user specified buffer,
just compile with  -DUSER_BUF.  It leads to crashes.

Petr

-- 
           Summary: libio in wide mode deallocates user supplied buffer
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: Petr dot Salinger at seznam dot cz
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: i486-linux-gnu


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2007-01-12 17:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-14 17:05 [Bug libc/2337] New: libio in wide mode deallocates user supplied buffer Petr dot Salinger at seznam dot cz
2006-02-14 17:07 ` [Bug libc/2337] " Petr dot Salinger at seznam dot cz
2006-03-02 14:07 ` Petr dot Salinger at seznam dot cz
2006-05-03 11:30 ` Petr dot Salinger at seznam dot cz
2006-10-04 16:46 ` rsa at us dot ibm dot com
2006-10-04 19:55 ` rsa at us dot ibm dot com
2006-10-06  6:00 ` rsa at us dot ibm dot com
2006-10-06 17:10 ` rsa at us dot ibm dot com
2006-12-13 23:18 ` drepper at redhat dot com
2007-01-12 17:26 ` cvs-commit at gcc dot gnu dot 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).