Comment by PhilipRoman
2 days ago
>checking the return of any allocation call
I would say this is pointless on many modern systems unless you also disable overcommit, since otherwise any memory access can result in a crash, which is impossible to check for explicitly.
Most code correctness is pointless until it isn't, yes
abort() isn't an option on all modern systems.
It’s an option on most systems.
Maybe not in embedded work - but in that case you might want to preallocate memory anyway.