This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ferringb
Recipients ferringb
Date 2011-08-30.00:31:50
SpamBayes Score 0.00039196957
Marked as misclassified No
Message-id <1314664313.38.0.204964767206.issue12856@psf.upfronthosting.co.za>
In-reply-to
Content
Roughly; tempfile's uniqueness is derived from a global random instance; while there are protections for thread access, a forked child process /will/ inherit that PRNG source, resulting in children/parent trying the same set of names.

Mostly it's proving annoying in some code I have to deal in, although it wouldn't surprise me if someone watching a known temp location could use the predictability in some fashion.

As for affect, all versions of python have this; attached patch is cut against trunk.
History
Date User Action Args
2011-08-30 00:31:53ferringbsetrecipients: + ferringb
2011-08-30 00:31:53ferringbsetmessageid: <1314664313.38.0.204964767206.issue12856@psf.upfronthosting.co.za>
2011-08-30 00:31:52ferringblinkissue12856 messages
2011-08-30 00:31:52ferringbcreate