re: PHP CVE fix diff size
clar fon @clarfonthey@toot.cat
Content warning: re: PHP CVE fix diff size
:vi_fon: belated remarks from someone whose opinions might be appreciated: the diff and associated story for the #PHP CVE fix makes a lot of sense coming from the perspective of helping #RustLang work on stabilizing custom allocators
like, even in a language that prides itself on explicitly specifying invariants and giving people the tools to reason about memory issues, allocators are such a minefield of potential subtle problems that it makes loads of sense that PHP had to effectively rearchitect a lot of things to fix this bug
like, just as a simple example, regarding the bug, this unsafe code guidelines issue was referenced from the Rust side about how reasoning about out-of-memory situations is incredibly subtle and even compilers can do it wrong sometimes
the point is, basically, the amount of work put in by the PHP team is incredibly commendable and it also is quite realistic that there are going to be bugs and headaches for weeks to come. sometimes they might even depend on the compiler doing weird things to your code that are technically wrong but were never realised until recently, and miscompiles are a special hell to experience as a developer, especially one who needs to make their code work under multiple compilers on multiple operating systems and CPU architectures