by winrid · 1y ago · 0 comments
It also assumes that the OS doesn't lie to the application when allocations fail.
what prevents a library from taking an allocator, saving it hidden somewhere and using it silently?
Gotta do the good ol'
echo 2 >/proc/sys/vm/overcommit_memory
and maybe adjust overcommit_ratio as well to make sure the memory you allocated is actually available.