[strongSwan-dev] malloc check policy

Tobias Brunner tobias at strongswan.org
Mon Mar 21 12:24:20 CET 2016


Hi Emeric,

> I noticed that a lot of malloc calls are not checked in the code (may return NULL).

Yes, generally we don't check the return value.

> What is your policy on this behavior?

If malloc() fails you have a serious problem anyway.  Handling this
gracefully is often not really possible so we don't even attempt it.

Regards,
Tobias



More information about the Dev mailing list