OS : AIX 22.214.171.124 and 126.96.36.199
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:
Log in to post a comment.