emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dumper issue, revisited; invalid realloc/free


From: Eli Zaretskii
Subject: Re: Dumper issue, revisited; invalid realloc/free
Date: Wed, 04 Feb 2015 21:54:38 +0200

> Date: Wed, 4 Feb 2015 14:49:10 -0500
> From: Rich Felker <address@hidden>
> Cc: address@hidden
> 
> > > > Or that the libc memory allocation routines can gracefully handle
> > > > these situations.
> > > 
> > > I would not consider that "graceful". If they detect that the pointer
> > > passed to realloc or free is invalid, the only reasonable behavior is
> > > to abort.
> > 
> > They could do exactly what you planned to do: ignore the 'free' part
> > and only allocate a new block.
> 
> This behavior does not make sense in system malloc

Of course, it does: to support Emacs.  glibc is still a GNU project,
isn't it?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]