This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14277] Pointer used after free'd
- From: "law at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 21 Jun 2012 18:00:06 +0000
- Subject: [Bug libc/14277] Pointer used after free'd
- Auto-submitted: auto-generated
- References: <bug-14277-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14277
--- Comment #2 from law at redhat dot com 2012-06-21 18:00:06 UTC ---
M_PERTURB does work for realloc (which just calls free internally). I can even
verify that it puts my perturb bytes into the free'd memory. All fine and
good.
Unfortunately after installing my perturb byte, something else inside malloc
decides to put the value 0 into the first 4 bytes of the free'd memory,
overwriting my nice invalid pointer perturb byte ;(
That happens to correspond to transmem_list->next. When we then try to use the
value, it just looks like a null pointer, which the code assumes is the end of
the list. So M_PERTURB isn't particularly helpful in generating a testcase for
this bug.
--
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.