News for hackers. Stuff that matters.
Re:System memory allocator free operation zeroes out dealloc... by Taniwha on Thursday September 22, 2022 @02:40PM (#32942912)
Possibly but there's the potential reverse problems where Apple programs start depending on newly allocated memory being zero .... and those programs start failing elsewhere ...
Re:System memory allocator free operation zeroes out dealloc... by thewebcount on Thursday September 22, 2022 @07:54PM (#32946173)
Well the change is to zero out memory on deallocation. So on allocation it may or may not be zero depending on whether it was previously freed, right?
Re:System memory allocator free operation zeroes out dealloc... by Taniwha on Saturday September 24, 2022 @01:52AM (#32960023)
not necessarily, even if was freed there might be defragged free blocks that still contain heap metadata by the time it gets reallocated
Re:System memory allocator free operation zeroes out dealloc... by ncmncm on Thursday September 22, 2022 @04:45PM (#32944406)
Might fail there, too, but only sometimes, if the memory gets allocated again.