A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-March/013477.html below:

[Python-Dev] Concerns about tempfile.mktemp()

[Python-Dev] Concerns about tempfile.mktemp() [Python-Dev] Concerns about tempfile.mktemp()Matt Wilson msw@redhat.com
Mon, 12 Mar 2001 16:47:05 -0500
We've been auditing various code lately to check for /tmp races and so
on.  It seems that tempfile.mktemp() is used throughout the Python
library.  While nice and portable, tempfile.mktemp() is vulnerable to
races.

The TemporaryFile does a nice job of handling the filename returned by
mktemp properly, but there are many modules that don't.

Should I attempt to patch them all to use TemporaryFile?  Or set up
conditional use of mkstemp on those systems that support it?

Cheers,

Matt
msw@redhat.com



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4