Does this look like some obscure bug in these versions of perl?

Based on the information you've given so far, it sounds like a bug somewhere, but more likely in one of the dependent modules. As a starting point I suggest getting the module versions for yourself: usually use Some::Module; print $Some::Module::VERSION; should be enough. You may also need to check any other modules used by qw{ File::Spec File::Spec::Unix File::Temp } that could possibly be getting involved.

My first guess is that one of the modules initializes a package variable or file-scope lexical in a way that happens to taint it from one of your $pathdir calls, and tempdir() then calls into the same module in a way that causes it to use that variable.

If you're lucky you might also find something that stands out as relevant in the changelog files of the relevant packages.


In reply to Re: Revisiting Insecure dependency in mkdir while running with -T switch at ... File/Temp.pm line 542 by hv
in thread Revisiting Insecure dependency in mkdir while running with -T switch at ... File/Temp.pm line 542 by sidney

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.