This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3082] fopen corrupts file name buffer when file name is 44 chars long
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 17 Aug 2006 18:09:28 -0000
- Subject: [Bug libc/3082] fopen corrupts file name buffer when file name is 44 chars long
- References: <20060817180037.3082.jlange6648@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2006-08-17 18:09 -------
The testcase is broken, it corrupts memory itself.
You malloc a 44 byte long buffer and then you copy a 45 byte long string into
it with strcpy (the last byte is the '\0' terminator).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=3082
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.