Use protected version of the malloc attribute in case source wants to
define malloc as macro.