| Deutsch English Français Italiano |
|
<wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!feeds.news.ox.ac.uk!news.ox.ac.uk!earthli!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: Richard Kettlewell <invalid@invalid.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Sun, 24 Nov 2024 12:46:46 +0000
Organization: terraraq NNTP server
Message-ID: <wwvmshodcjt.fsf@LkoBDZeT.terraraq.uk>
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> <vhtide$1s5d5$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="138555"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:+N+BhIZwqLOpAzqBbuQA3vXc3Z8=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Bytes: 2321
Lines: 19
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> 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”,
It’s what everyone else means by it.
> 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>.
Glibc’s double free detection is heuristic, not 100% reliable.
--
https://www.greenend.org.uk/rjk/