From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Re: NULL deref SEGV in malloc.c:unbin()
Date: Sat, 28 Dec 2013 20:34:45 -0500 [thread overview]
Message-ID: <20131229013445.GJ24286@brightrain.aerifal.cx> (raw)
In-Reply-To: <20131229000511.GZ1685@port70.net>
On Sun, Dec 29, 2013 at 01:05:15AM +0100, Szabolcs Nagy wrote:
> * Szabolcs Nagy <nsz@port70.net> [2013-12-29 01:01:12 +0100]:
> >
> > so it seems the corruption starts before opendir
> >
> > it would be nice to see where 0x2139018 comes from and why
> > mal.binmap and mal.bin[40] aren't managed properly
>
> probably unrelated but i dont understand
>
> split = (void *)((char *)self + n);
>
> in pretrim and trim
>
> why is the n enough between the start of self and split
> chunks? (and not n + overhead)
The first line of malloc() calls adjust_size(&n). After that, n is
always in terms of total chunk size needed, not caller-usable size.
Rich
next prev parent reply other threads:[~2013-12-29 1:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-27 18:35 David Wuertele
2013-12-27 19:05 ` Rich Felker
2013-12-27 19:44 ` David Wuertele
2013-12-27 22:13 ` Rich Felker
2013-12-28 0:25 ` David Wuertele
2013-12-28 1:28 ` David Wuertele
2013-12-28 3:03 ` Rich Felker
2013-12-29 0:01 ` Szabolcs Nagy
2013-12-29 0:05 ` Szabolcs Nagy
2013-12-29 1:34 ` Rich Felker [this message]
2013-12-30 19:17 ` David Wuertele
2013-12-30 21:25 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131229013445.GJ24286@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).