Re:ISO C became unusable for operating systems development
by zdragnar on Saturday January 22, 2022 @10:33AM
(#30037529)
You may be interested in this:
https://way-cooler.org/blog/2019/04/29/rewriting-way-cooler-...
With them, you can at least tell apart data structures that are fleeting and can disappear when a cable is ejected, and those which should stay put. This likely might help avoid another double-free or another freed pointer dereference.