"The works-by-accident is confirmed: heap_alloc zeros every block, but real NewP...
Tamas G @Tamasg@mindly.social
"The works-by-accident is confirmed: heap_alloc zeros every block, but real NewPtr/NewHandle don't — only *Clear variants do. The principled fix: pre-fill the heap with garbage, and have heap_alloc zero only for Clear allocations. This keeps Catalina's Clear-allocated fields zeroed (avoiding her wild pointer) while giving the scans their nonzero garbage. Let me read the init path and implement it:"
Hey Claude I want a wild pointer, look at that she's a feisty one. The real truth is more boring: it's a pointer variable that has been declared but not initialized to a valid memory address before its first use. Wild pointers are not good, as good as they may sound. Trying to read or write to this random location can corrupt critical data.