On Jul 3, 2007, at 12:02 PM, Mark Glines wrote:
Problem 1, why does string_replace() crash when passed a NULL rep argument?
Because there are derefs inside the function.
Problem 2, why is this test case passing a NULL pointer all of a sudden, exposing Problem #1? Presumably, this used to work.
That I can't tell. All I'm looking at is the underlying C code, where it seems to me that passing in a rep of NULL should not be allowed.
-- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance