AIX malloc(0) is null

B. Galliart bgallia at
Wed May 8 00:34:03 CEST 2002

How many people believe in testing if their computer is out of memory by
requesting the allocation of *0* bytes?

So, what is wrong with the following picture:
  gpg: out of  memory while allocating 0 bytes

GNUPG v1.07 *REQUIRES* the use of m-guard on AIX to ensure that GPG never
attempts malloc(0) (m-gaurd always allocates at least 5 bytes).  There is
just something brain dead about requesting *nothing* and exiting if you do
not get *something*.  Please update memory.c to skip malloc if 0 bytes are
requested or update the configure script to automatically include m-gaurd
if malloc(0) returns null.


More information about the Gnupg-devel mailing list