David Robins <[EMAIL PROTECTED]> writes:

> C programmers will probably see what's wrong here: copying a volatile
> pointer  (aliasing bug).  The char* comes from SvPV_nolen(), which
> points into the SV, in this case $v from the 'each'.  When $v changes,
> so will the value of path. When $v goes out of scope and its PV gets
> freed, 'val' will be overwritten by  whatever uses the space.
>
> The same problem occurs in the other generated char* functions,
> e.g. domain,  port, comment, etc.

Exactly- that's another bug we inherited from ExtUtils::XSBuilder, but 
our current svn trunk includes a fix for that.

-- 
Joe Schaefer

Reply via email to