[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dumper issue, revisited; invalid realloc/free
From: |
Rich Felker |
Subject: |
Re: Dumper issue, revisited; invalid realloc/free |
Date: |
Wed, 4 Feb 2015 15:08:42 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Feb 04, 2015 at 09:44:17PM +0200, Eli Zaretskii wrote:
> > Date: Wed, 4 Feb 2015 14:37:32 -0500
> > From: Rich Felker <address@hidden>
> > Cc: address@hidden
> >
> > > > http://www.openwall.com/lists/musl/2015/02/03/1
> > >
> > > I suggest that you take a look at src/w32heap.c on Emacs's master
> > > branch. There' you will see a simple solution of a very similar (if
> > > not identical) problem we have on MS-Windows. It even includes a
> > > simple handling of large allocations.
> >
> > As I suspected, this code is used only if you use gmalloc.c. It's not
> > used with system_malloc=yes, which is the case I'm concerned about.
>
> No, you are mistaken. The 'master' version of Emacs uses the system
> malloc on MS-Windows. Perhaps you are looking at the 'emacs-24'
> branch, where indeed we use gmalloc.c and ralloc.c, with sbrk
> emulation in w32heap.c. But that's not what I had in mind.
Upon checking master, w32heap.c is not using the system malloc. It's
its own implementation of the malloc API written on top of the Win32
HeapAlloc API.
Rich
- Re: Dumper issue, revisited; invalid realloc/free, (continued)
Re: Dumper issue, revisited; invalid realloc/free, Eli Zaretskii, 2015/02/04
- Re: Dumper issue, revisited; invalid realloc/free, Rich Felker, 2015/02/04
- Re: Dumper issue, revisited; invalid realloc/free, Eli Zaretskii, 2015/02/04
- Re: Dumper issue, revisited; invalid realloc/free, Rich Felker, 2015/02/04
- Re: Dumper issue, revisited; invalid realloc/free, Eli Zaretskii, 2015/02/04
- Re: Dumper issue, revisited; invalid realloc/free, Rich Felker, 2015/02/04
- Re: Dumper issue, revisited; invalid realloc/free, Eli Zaretskii, 2015/02/04
Re: Dumper issue, revisited; invalid realloc/free,
Rich Felker <=
Re: Dumper issue, revisited; invalid realloc/free, Eli Zaretskii, 2015/02/04
Re: Dumper issue, revisited; invalid realloc/free, Rich Felker, 2015/02/04
Re: Dumper issue, revisited; invalid realloc/free, Eli Zaretskii, 2015/02/04