Path: ...!feeds.phibee-telecom.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Spiros Bousbouras Newsgroups: comp.lang.c Subject: Re: avoiding strdup() Date: Mon, 11 Mar 2024 19:45:33 -0000 (UTC) Organization: A noiseless patient Spider Lines: 6 Message-ID: References: <87y1ayj6hs.fsf_-_@bsb.me.uk> <87r0gizzuo.fsf@nosuchdomain.example.com> <20240310101101.00001fd4@yahoo.com> <20240310100715.866@kylheku.com> <20240311185039.000066fc@yahoo.com> <87edcgzo7r.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 11 Mar 2024 19:45:33 -0000 (UTC) Injection-Info: dont-email.me; posting-host="5b7f4a9274de11a35a2cde98e30111a7"; logging-data="3995233"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19abiUz0H2OmuvMC/gGoV4/" Cancel-Lock: sha1:5mpfTYux2UXzu5Ylk/rYQ4JCIA8= X-Server-Commands: nowebcancel In-Reply-To: <87edcgzo7r.fsf@nosuchdomain.example.com> X-Organisation: Weyland-Yutani Bytes: 1831 On Mon, 11 Mar 2024 10:13:12 -0700 Keith Thompson wrote: > One data point: On my Ubuntu system, malloc(SIZE_MAX) returns NULL for > very large arguments (over about 23 GiB in my quick and dirty test). You lost me there.