OS : AIX 220.127.116.11 and 18.104.22.168
CC : GCC 3.4.6 and 3.4.2 respectively.
I had been getting test failures with the 'regexp'
module. After tracing through the function calls of one
of the offending REs, I discovered that malloc was
being passed 0, and returned NULL.
Some code in regcomp.c, regex.c, and regex_internal.c
assumes REG_ESPACE when malloc returns NULL. On AIX,
malloc(0) returns NULL and sets errno. I had to change
these files in a few places to check that errno ==
ENOMEM in addition to checking whether the assigned
pointer was NULL.
Also check the gnulib repository log for regex rev. 1.11: