bug-gnulib
[Top][All Lists]
Advanced

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

Re: FYI - bash crash due to asprintf bug


From: Paul Eggert
Subject: Re: FYI - bash crash due to asprintf bug
Date: Wed, 29 Nov 2006 10:03:04 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Eric Blake <address@hidden> writes:

>> See http://tinyurl.com/yd5669 for details.
>
> This message on the cygwin list has a good point,

For first-fit memory allocators, perhaps; but these are ancient
technology and I wouldn't worry about x2nrealloc on their account.

That being said, if you can show a real performance improvement in
x2nrealloc by using a multiplier of with some value less than 2, then
I'd favor changing x2nrealloc accordingly.  (I'm assuming glibc here.)
x2nrealloc's spec specifically allows a multiplier less than 2.
However, you'd have to do the overflow checking right, and at the
other end you have to make sure that growing from size 1 gets you to
size 2.




reply via email to

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