Deutsch   English   Français   Italiano  
<vhtide$1s5d5$8@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Sat, 23 Nov 2024 21:45:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <vhtide$1s5d5$8@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
	<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
	<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
	<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
	<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
	<vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad>
	<slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
	<mcf0P.211278$pZ%.68099@fx16.iad> <vhs153$1k6ft$3@dont-email.me>
	<wwvjzcu1chd.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 22:45:19 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2fd1218dfbbc8c3afa5bbf19b4966652";
	logging-data="1971621"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19W7lMxSvY6ZzRmUWy6uUNH"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:AKz67eW9Ri3obXktRvPZO8M2W24=
Bytes: 1915

On Sat, 23 Nov 2024 10:16:46 +0000, Richard Kettlewell wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>
>> One thing that helps is that free(3) is idempotent:
> 
> It is not. Freeing the same non-null pointer twice is a bug (and a
> common source of vulnerabilities).

That’s not what I meant by “idempotent”, and that particular case is easy 
to catch anyway, and glibc does so by default. See
<https://manpages.debian.org/3/mallopt.3.en.html>.