[New-bugs-announce] [issue32904] os.chdir() may crash on Windows in presence of races

Alexey Izbyshev report at bugs.python.org
Wed Feb 21 20:00:15 EST 2018


New submission from Alexey Izbyshev <izbyshev at ispras.ru>:

win32_wchdir() retries GetCurrentDirectory() with a larger buffer if necessary, but doesn't check whether the new buffer is large enough. Another thread could change the current directory in meanwhile, so the buffer could turn out to be still not large enough, left in an uninitialized state and passed to SetEnvironmentVariable() afterwards.

----------
components: Extension Modules, Windows
messages: 312524
nosy: izbyshev, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
priority: normal
severity: normal
status: open
title: os.chdir() may crash on Windows in presence of races
type: crash
versions: Python 2.7, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32904>
_______________________________________


More information about the New-bugs-announce mailing list