This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5743] realloc() problem
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Mar 2008 00:28:41 -0000
- Subject: [Bug libc/5743] realloc() problem
- References: <20080207100648.5743.tsuyoshi@wni.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2008-03-05 00:28 -------
The code is correct. oldsize is determined from chunksize and that value
contains the number of bytes needed for the leading two pointers which are not
touched. Your patch creates memory overflows.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=5743
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.