Issue 20447: doctest.debug_script: insecure use of /tmp (original) (raw)

Issue20447

Created on 2014-01-30 14:03 by jwilk, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg209717 - (view) Author: Jakub Wilk (jwilk) Date: 2014-01-30 14:03
The doctest.debug_script function creates temporary files in an insecure way: srcfilename = tempfile.mktemp(".py", "doctestdebug") f = open(srcfilename, 'w') This is already fixed for Python >= 3.2, although for reasons other than security:
msg264408 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-04-28 04:10
3.1 is now EOL: https://docs.python.org/devguide/index.html#status-of-python-branches
History
Date User Action Args
2022-04-11 14:57:57 admin set github: 64646
2016-04-28 04:10:22 berker.peksag set status: open -> closednosy: + berker.peksagmessages: + resolution: out of datestage: resolved
2014-01-30 14:03:45 jwilk create