[SystemSafety] When malloc() Never Returns NULL

Derek M Jones derek at knosof.co.uk
Thu May 11 12:57:25 CEST 2023


All,

Coding guidelines have been telling developers to
check the return value of malloc forever.

It certainly used to make a difference, but it looks
as if out-of-memory is becoming a thing of the past,
at least on the desktop.

"When malloc() Never Returns NULL -- Reliability as an Illusion"
https://arxiv.org/abs/2208.08484

-- 
Derek M. Jones           Evidence-based software engineering
blog:https://shape-of-code.com


More information about the systemsafety mailing list