[Dune] [#979] Remove autoconf test for malloc

Dune flyspray at dune-project.org
Thu Nov 17 17:45:45 CET 2011


The following task has a new comment added:

FS#979 - Remove autoconf test for malloc
User who did this - Markus Blatt (mblatt)

AC_FUNC_MALLOC actually checks whether malloc(0) returns a valid pointer (compatible with gnu malloc). http://www.mail-archive.com/autoconf@gnu.org/msg08931.html
I would hope that we do try to malloc 0 bytes. In this case removal would be save.

If we want to be able to use malloc(0), we need to provide a fallback version allowing malloc(0).

Therefore the question is:
Do we think malloc(0) is allowed or do we accept undefined behaviour for this call?

If we opt for the first we should probably also consider realloc(0) etc.

More information can be found at the following URL:

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.

More information about the Dune mailing list