[Not really OT] Crowdstrike Analysis: It was a NULL pointer from the memory unsafe C++ language.

Basile B. b2.temp at gmx.com
Sat Jul 20 11:37:23 UTC 2024


On Friday, 19 July 2024 at 22:49:23 UTC, mw wrote:
> https://twitter.com/Perpetualmaniac/status/1814376668095754753?t=fAIwQeQpf0HJ9uh-gxqE9Q&s=19
>
> Crowdstrike Analysis:
>
> It was a NULL pointer from the memory unsafe C++ language.
>
> Since I am a professional C++ programmer, let me decode this 
> stack trace dump for you.
>
> ....

There's gonna be a lot of discussion about "use optional types", 
"nullable types are the evil", etc. In my opinion the problem is 
more a lack of code instrumentation. In styx you can instrument 
the code so that 'every fucking damn GEP' ("member access" for 
the profans) is checked against null. Same for member functions 
calls. It's very costly but that helps much.

Anyway here is the obligatory legendary video of the slap:

https://www.youtube.com/watch?v=bLHL75H_VEM

take care

B.


More information about the Digitalmars-d mailing list