🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.vms
Article #246

Re: More PHP vulnerabilities

#246
From: Arne Vajhøj
Date: Tue, 24 Nov 2026 23:39
39 lines
2665 bytes
On 11/24/2026 4:08 PM, Simon Clubley wrote:
> In C, I would like to see people stop using library functions that have
> no way of doing bounded buffer copies (strcpy() and friends for example).
> I would say that is a common sense thing to ask for, but after some recent
> CVEs it would appear common sense is not all that common.

It is going that way.

strlxxx/strxxx_s is taking over from strxxx and strnxxx.

Just too bad that *nix and MS went different ways.

C standard need to catch up.

> In C++, I would like to see people stop using unchecked bounds access
> (ie: []) to access containers and start using checked access (ie: at())
> always instead. It's insane that [] wasn't the checked option so you got
> safer code by default.
> 
> BTW, I know some environments now allow [] to become checked. It would
> be nice to see that left enabled in production code, especially in
> today's environment.

+1

> Another minor annoyance of mine. When you write code, you are modelling
> a real-world problem. I hate that people sometimes run to using signed
> integers by default when most of the time, unsigned integers are a more
> accurate match.

Neither −2147483648..2147483647 nor 0..4294967295 are likely
to map to anything business relevant.

1..10
0..999
etc.

Arne
Technical Details
Message-ID: <11e5751$39ij0$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11dnpep$2kvk6$2@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me> <11e24vp$265v0$1@dont-email.me> <11e2m8f$i1e$1@reader2.panix.com> <11e4ubq$36gi8$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Arne Vajhøj <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: More PHP vulnerabilities
Date: Tue, 24 Nov 2026 18:39:07 -0500
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <11e5751$39ij0$1@dont-email.me>
References: <11dnpep$2kvk6$2@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me>
 <11dqa7g$3guqc$1@dont-email.me> <11e24vp$265v0$1@dont-email.me>
 <11e2m8f$i1e$1@reader2.panix.com> <11e4ubq$36gi8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Nov 2026 23:38:10 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3459680"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/LMoy8XmMOGXmmnX9013KLculbyT3NEgE="; posting-host="2b8e6ff5d2c139129f1dc949e837c0e1"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3lm6+9si3Wprm2uAS2jactbnlkQ= sha256:tUCgxFPWyNRmcQIfgQSOblpXIoPhyXK0l+FVH7KB/Kc=
	sha1:ogpOhQIIIAeS/zChsRzmq/FHL+g= sha256:M+v3xTbsndwQ2LSyUfJeQDW/W9p+6D7oK/495sX6gww=
In-Reply-To: <11e4ubq$36gi8$1@dont-email.me>
Content-Language: en-US