[Bug 998256] Re: regcomp fails with custom malloc

2012-05-12 Thread Robert Vollmert
** Description changed: regcomp fails to compile the regular expression "^ " with memory error - if malloc(0) returns NULL. That's valid malloc behavior, compare - malloc(3). + if malloc(0) returns NULL. That's valid malloc behavior, compare the man + page malloc(3). I had a little trouble

[Bug 998256] Re: regcomp fails with custom malloc

2012-05-11 Thread Robert Vollmert
** Attachment added: "program exhibiting bug (compile with -ldl)" https://bugs.launchpad.net/bugs/998256/+attachment/3141970/+files/test.c ** Description changed: regcomp fails to compile the regular expression "^ " with memory error if malloc(0) returns NULL. That's valid malloc behavior,