Article View: comp.os.vms
Article #240Re: More PHP vulnerabilities
From: Simon Clubley
Date: Mon, 23 Nov 2026 20:58
Date: Mon, 23 Nov 2026 20:58
56 lines
3216 bytes
3216 bytes
On 2026-11-23, Scott Lurndal <scott@slp53.sl.home> wrote: > Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> writes: >>> >> >>As Dan has pointed out, yes. However, I absolutely hate that style of >>coding (and the use of short circuiting in general) - it is way too fragile. > > Must disagree. Consider the classic (ptr && *ptr) paradigm. > >> >>It depends on the compiler behaving as expected > > No, it depends on the programmer being familiar with > the C (and C++) language grammar. > Or the programmer is familiar with it but doesn't like it in the same way that he doesn't like in-band null string terminators or (in C++) he doesn't like the decision for default speed over safety ([] is unchecked instead of checked and you have to use at() for safe access). All those are examples of my mindset here BTW. In that latter case, you should have got safety by default and if you wanted speed you should have had to ask for it. > The chance that any C compiler (outside of a first year college > course) would not properly handle those operators correctly > is exactly zero. > As in my original posting, the problem could also be introduced at application level during an edit. > >>Seriously. Please consider not using short circuiting and instead writing >>your code so it works regardless of whether your compiler short-circuits >>or not. (Or it suddenly decides to stop short-circuiting one day). > > Seriously, use the conditonal logical operators frequently and > often. They'll work correctly unto the heat death of the universe. > >> >>Oh, and before you all start mocking me, please read this: >> >>https://www.redhat.com/en/blog/security-flaws-caused-compiler-optimizations > > That has nothing to do with the conditional-and/or operators. > It does if you understand the point I am trying to make. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Walking destinations on a map are further away than they appear.
Technical Details
Message-ID:
<11e29do$281c1$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-mailReferences:
<11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me> <11e24vp$265v0$1@dont-email.me> <dc1NS.79823$EAo4.20738@fx22.iad>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: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> Newsgroups: comp.os.vms Subject: Re: More PHP vulnerabilities Date: Mon, 23 Nov 2026 20:58:32 -0000 (UTC) Organization: A noiseless patient Spider Lines: 56 Message-ID: <11e29do$281c1$1@dont-email.me> References: <11dnpep$2kvk6$2@dont-email.me> <11dpfjf$35umc$1@dont-email.me> <11dq9gg$3ghpm$1@dont-email.me> <11dqa7g$3guqc$1@dont-email.me> <11e24vp$265v0$1@dont-email.me> <dc1NS.79823$EAo4.20738@fx22.iad> Injection-Date: Mon, 23 Nov 2026 20:58:32 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2360705"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JRJdPLn9F/XcQ4G87uQh9jdWpogl+ojs="; posting-host="4859acde95e0a5fc586b6509f7f15f50" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:FgF189W4BzqDl/sdsd/uC3pcJRU= sha256:fnKYa8DAsqpKdQRhemNG5yk0STi1PwPVVZ6zfDGiyLs= sha1:Nus8k/uiM07WEu/xWX037eP2odc= sha256:N49hS0ZDyWAlFQj+wd1ickrGJAflYisSkUYSZs6RFbc=